Interface Yiisoft\Hydrator\Attribute\Data\DataAttributeResolverInterface
An interface for resolvers of attributes that implement {@see DataAttributeInterface}.
Public Methods
| Method | Description | Defined By |
|---|---|---|
| prepareData() | Prepare a data object ({@see DataInterface}) that used for hydration. | Yiisoft\Hydrator\Attribute\Data\DataAttributeResolverInterface |
Method Details
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;
Signup or Login in order to comment.