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

Mostra file Open project: sulu/sulu Class Usage Examples

Public Methods

Method 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 method

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

getAttribute() public method

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

merge() public method

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