| 1 | <?php declare(strict_types=1); |
||
| 16 | class ArrayProcessor extends Processor |
||
| 17 | { |
||
| 18 | /** |
||
| 19 | * @var Processor |
||
| 20 | */ |
||
| 21 | protected $itemsProcessor; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * ArrayHydrator constructor. |
||
| 25 | * @param ArraySchema $schema |
||
| 26 | */ |
||
| 27 | public function __construct(ArraySchema $schema) |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param Processor $itemsHydrator |
||
| 34 | * @return ArrayProcessor |
||
| 35 | */ |
||
| 36 | public function setItemsProcessor(Processor $itemsHydrator): ArrayProcessor |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param null|array $value |
||
| 45 | * @return null|array |
||
| 46 | */ |
||
| 47 | public function hydrate($value) |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @param mixed $value |
||
| 62 | * @return mixed |
||
| 63 | */ |
||
| 64 | public function dehydrate($value) |
||
| 70 | } |
||
| 71 |