WordPress\AiClientDependencies\Psr\Http\Message
ServerRequestInterface::withAttribute
Return an instance with the specified derived request attribute.
This method allows setting a single derived request attribute as described in getAttributes().
This method MUST be implemented in such a way as to retain the immutability of the message, and MUST return an instance that has the updated attribute.
Метод класса: ServerRequestInterface{}
Хуков нет.
Возвращает
static.
Использование
$ServerRequestInterface = new ServerRequestInterface(); $ServerRequestInterface->withAttribute( $name, $value ): ServerRequestInterface;
- $name(строка) (обязательный)
- The attribute name.
- $value(разное) (обязательный)
- The value of the attribute.
Заметки
| Смотрите: getAttributes() |
Код ServerRequestInterface::withAttribute() ServerRequestInterface::withAttribute WP 7.1.2
public function withAttribute(string $name, $value): ServerRequestInterface;