0 follower

Interface Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeResolverInterface

Implemented byYiisoft\Hydrator\Attribute\Parameter\CollectionResolver, Yiisoft\Hydrator\Attribute\Parameter\Data, Yiisoft\Hydrator\Attribute\Parameter\DiResolver, Yiisoft\Hydrator\Attribute\Parameter\LeftTrimResolver, Yiisoft\Hydrator\Attribute\Parameter\RightTrimResolver, Yiisoft\Hydrator\Attribute\Parameter\ToArrayOfStringsResolver, Yiisoft\Hydrator\Attribute\Parameter\ToDateTimeResolver, Yiisoft\Hydrator\Attribute\Parameter\ToString, Yiisoft\Hydrator\Attribute\Parameter\TrimResolver

An interface for resolvers of attributes that implement {@see ParameterAttributeInterface}.

Public Methods

Hide inherited methods

Method Description Defined By
getParameterValue() Returns the resolved from specified attribute value object. Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeResolverInterface

Method Details

Hide inherited methods

getParameterValue() public abstract method

Returns the resolved from specified attribute value object.

public abstract Yiisoft\Hydrator\Result getParameterValue ( Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface $attribute, Yiisoft\Hydrator\AttributeHandling\ParameterAttributeResolveContext $context )
$attribute Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface

The attribute to be resolved.

$context Yiisoft\Hydrator\AttributeHandling\ParameterAttributeResolveContext

The context of value resolving from attribute.

return Yiisoft\Hydrator\Result

The resolved from specified attribute value object.

                public function getParameterValue(
    ParameterAttributeInterface $attribute,
    ParameterAttributeResolveContext $context
): Result;