add unset method

This commit is contained in:
2026-03-21 11:21:19 -04:00
parent 45252bfd87
commit 804638a786

View File

@@ -25,6 +25,11 @@ trait HttpServerAwareTrait
return $this->set(self::HTTP_SERVER, $httpServer); return $this->set(self::HTTP_SERVER, $httpServer);
} }
final protected function unsetHttpServer(): null
{
return $this->unset(self::HTTP_SERVER);
}
final public function withHttpServer(HttpServer $httpServer): static final public function withHttpServer(HttpServer $httpServer): static
{ {
return $this->with(self::HTTP_SERVER, $httpServer); return $this->with(self::HTTP_SERVER, $httpServer);