1 | <?php declare(strict_types = 1); |
||
15 | abstract class AbstractCollectionResolver |
||
16 | { |
||
17 | /** @var array Collection of collection configurators */ |
||
18 | protected $configurators = []; |
||
19 | |||
20 | /** |
||
21 | * ArrayPropertyResolver constructor. |
||
22 | * |
||
23 | * @param array $collectionConfigurators |
||
24 | * |
||
25 | * @throws \InvalidArgumentException |
||
26 | */ |
||
27 | 1 | public function __construct(array $collectionConfigurators) |
|
39 | |||
40 | /** |
||
41 | * Get collection configurator collection key name for resolving. |
||
42 | * |
||
43 | * @param string $className Full collection configurator class name with namespace |
||
44 | * |
||
45 | * @return string Collection configurator collection key name |
||
46 | */ |
||
47 | 1 | public function getKey($className) : string |
|
57 | |||
58 | /** |
||
59 | * Try to find attribute configurators. |
||
60 | * |
||
61 | * @param array $arrayData Configuration data array |
||
62 | * |
||
63 | * @return CollectionAttributeConfiguratorInterface[] Found attribute configurator instances collection |
||
64 | */ |
||
65 | 1 | public function getAttributeConfigurator(array $arrayData) : array |
|
83 | } |
||
84 |