0 follower

Interface Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface

Implemented byYiisoft\Hydrator\Attribute\Parameter\Collection, Yiisoft\Hydrator\Attribute\Parameter\Data, Yiisoft\Hydrator\Attribute\Parameter\Di, Yiisoft\Hydrator\Attribute\Parameter\LeftTrim, Yiisoft\Hydrator\Attribute\Parameter\RightTrim, Yiisoft\Hydrator\Attribute\Parameter\ToArrayOfStrings, Yiisoft\Hydrator\Attribute\Parameter\ToDateTime, Yiisoft\Hydrator\Attribute\Parameter\ToString, Yiisoft\Hydrator\Attribute\Parameter\Trim

An interface for parameters' attributes (allowed only in class properties and constructor parameters). Can be used for getting value (e. g, from request) or type casting value.

Public Methods

Hide inherited methods

Method Description Defined By
getResolver() A matching resolver name or an instance used for processing this attribute. Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeInterface

Method Details

Hide inherited methods

getResolver() public abstract method

A matching resolver name or an instance used for processing this attribute.

public abstract Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeResolverInterface|string getResolver ( )
return Yiisoft\Hydrator\Attribute\Parameter\ParameterAttributeResolverInterface|string

An attribute resolver name or an instance.

                public function getResolver(): string|ParameterAttributeResolverInterface;