class Alias

Properties

$propertyName string

Methods

__construct (string $propertyName, string $className = null, bool $list = false)

No description

getValue (ResourceInterface $resource, mixed $value) : mixed

No description

Details

__construct(string $propertyName, string $className = null, bool $list = false)

Parameters

$propertyName string A name of the property in target resource class
$className string A class name for the property value
$list bool Whether value of the property should be treated as a list or not

Example code

$alias->__construct($propertyName, $className, $list);

getValue(ResourceInterface $resource, mixed $value)

Parameters

$resource ResourceInterface
$value mixed

Return value

mixed

Example code

$mixed = $alias->getValue($resource, $value);