1 | <?php |
||
11 | class RepositoryAggregate |
||
12 | { |
||
13 | /** |
||
14 | * @var EzInfoCollectionRepository |
||
15 | */ |
||
16 | protected $infoCollectionRepository; |
||
17 | |||
18 | /** |
||
19 | * @var EzInfoCollectionAttributeRepository |
||
20 | */ |
||
21 | protected $infoCollectionAttributeRepository; |
||
22 | |||
23 | /** |
||
24 | * RepositoryAggregate constructor. |
||
25 | * |
||
26 | * @param EzInfoCollectionRepository $infoCollectionRepository |
||
27 | * @param EzInfoCollectionAttributeRepository $infoCollectionAttributeRepository |
||
28 | */ |
||
29 | public function __construct( |
||
37 | |||
38 | /** |
||
39 | * Creates EzInfoCollection instance |
||
40 | * |
||
41 | * @param Location $location |
||
42 | * @param User $currentUser |
||
43 | * |
||
44 | * @return \Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollection |
||
45 | */ |
||
46 | public function createMain(Location $location, User $currentUser) |
||
54 | |||
55 | /** |
||
56 | * Creates EzInfoCollectionAttribute instance |
||
57 | * |
||
58 | * @param Location $location |
||
59 | * @param EzInfoCollection $ezInfoCollection |
||
60 | * @param int $fieldId |
||
61 | * @param LegacyData $value |
||
62 | * |
||
63 | * @return \Netgen\Bundle\InformationCollectionBundle\Entity\EzInfoCollectionAttribute |
||
64 | */ |
||
65 | public function createChild(Location $location, EzInfoCollection $ezInfoCollection, $fieldId, LegacyData $value) |
||
74 | } |
||
75 |