WordPress\AiClientDependencies\Nyholm\Psr7
ServerRequest::withoutAttribute
Метод класса: ServerRequest{}
Хуков нет.
Возвращает
static.
Использование
$ServerRequest = new ServerRequest(); $ServerRequest->withoutAttribute( $attribute ): ServerRequestInterface;
- $attribute(обязательный)
- .
Код ServerRequest::withoutAttribute() ServerRequest::withoutAttribute WP 7.0.4
public function withoutAttribute($attribute): ServerRequestInterface
{
if (!\is_string($attribute)) {
throw new \InvalidArgumentException('Attribute name must be a string');
}
if (\false === \array_key_exists($attribute, $this->attributes)) {
return $this;
}
$new = clone $this;
unset($new->attributes[$attribute]);
return $new;
}