1 | <?php |
||
21 | class AttributeFactory implements AttributeFactoryInterface |
||
22 | { |
||
23 | /** |
||
24 | * @var FactoryInterface |
||
25 | */ |
||
26 | private $factory; |
||
27 | |||
28 | /** |
||
29 | * @var ServiceRegistryInterface |
||
30 | */ |
||
31 | private $attributeTypesRegistry; |
||
32 | |||
33 | /** |
||
34 | * @param FactoryInterface $factory |
||
35 | * @param ServiceRegistryInterface $attributeTypesRegistry |
||
36 | */ |
||
37 | public function __construct(FactoryInterface $factory, ServiceRegistryInterface $attributeTypesRegistry) |
||
42 | |||
43 | /** |
||
44 | * @param string $type |
||
45 | * |
||
46 | * @return Attribute |
||
47 | */ |
||
48 | public function createTyped($type) |
||
56 | |||
57 | /** |
||
58 | * @return Attribute |
||
59 | */ |
||
60 | public function createNew() |
||
67 | } |
||
68 |