PHP Class Sulu\Component\Webspace\Analyzer\Attributes\RequestAttributes

Afficher le fichier Open project: sulu/sulu Class Usage Examples

Méthodes publiques

Méthode Description
__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.

Method Details

__construct() public méthode

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

getAttribute() public méthode

Returns attribute with given name.
public getAttribute ( string $name, mixed | null $default = null ) : mixed
$name string
$default mixed | null
Résultat mixed

merge() public méthode

Merges this and the given attributes and returns a new instance.
public merge ( RequestAttributes $requestAttributes ) : RequestAttributes
$requestAttributes RequestAttributes
Résultat RequestAttributes