0 follower

Interface Yiisoft\Hydrator\Attribute\Data\DataAttributeResolverInterface

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

Public Methods

Hide inherited methods

Method Description Defined By
prepareData() Prepare a data object ({@see DataInterface}) that used for hydration. Yiisoft\Hydrator\Attribute\Data\DataAttributeResolverInterface

Method Details

Hide inherited methods

prepareData() public abstract method

Prepare a data object ({@see DataInterface}) that used for hydration.

public abstract Yiisoft\Hydrator\DataInterface prepareData ( Yiisoft\Hydrator\Attribute\Data\DataAttributeInterface $attribute, Yiisoft\Hydrator\DataInterface $data )
$attribute Yiisoft\Hydrator\Attribute\Data\DataAttributeInterface

The attribute to be resolved.

$data Yiisoft\Hydrator\DataInterface

Current data object ({@see \Yiisoft\Hydrator\DataInterface}).

                public function prepareData(DataAttributeInterface $attribute, DataInterface $data): DataInterface;