1 | <?php declare(strict_types = 1); |
||
17 | abstract class AbstractCollectionResolver |
||
18 | { |
||
19 | /** @var array Collection of collection configurators */ |
||
20 | protected $configurators = []; |
||
21 | |||
22 | /** |
||
23 | * ArrayPropertyResolver constructor. |
||
24 | * |
||
25 | * @param array $collectionConfigurators |
||
26 | * |
||
27 | * @throws \InvalidArgumentException |
||
28 | */ |
||
29 | public function __construct(array $collectionConfigurators) |
||
41 | |||
42 | /** |
||
43 | * Get collection attribute configurator configuration key for resolving. |
||
44 | * |
||
45 | * @param string $className Full collection configurator class name with namespace |
||
46 | * |
||
47 | * @return string Collection configurator collection key name |
||
48 | */ |
||
49 | public function getKey($className) : string |
||
53 | |||
54 | /** |
||
55 | * Try to find attribute configurators. |
||
56 | * |
||
57 | * @param array $arrayData Configuration data array |
||
58 | * |
||
59 | * @return AttributeConfiguratorInterface[] Found attribute configurator instances collection |
||
60 | */ |
||
61 | public function getAttributeConfigurator(array $arrayData) : array |
||
79 | } |
||
80 |