PHP Класс Sulu\Component\Webspace\Analyzer\Attributes\RequestAttributes

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__construct ( array $attributes = [] )
getAttribute ( string $name, mixed | null $default = null ) : mixed Returns attribute with given name.
merge ( RequestAttributes $requestAttributes ) : RequestAttributes Merges this and the given attributes and returns a new instance.

Описание методов

__construct() публичный Метод

public __construct ( array $attributes = [] )
$attributes array

getAttribute() публичный Метод

Returns attribute with given name.
public getAttribute ( string $name, mixed | null $default = null ) : mixed
$name string
$default mixed | null
Результат mixed

merge() публичный Метод

Merges this and the given attributes and returns a new instance.
public merge ( RequestAttributes $requestAttributes ) : RequestAttributes
$requestAttributes RequestAttributes
Результат RequestAttributes