1 | <?php |
||
15 | class ContainerBuilder |
||
16 | { |
||
17 | /** |
||
18 | * @var ArrayObject |
||
19 | */ |
||
20 | private $definitions; |
||
21 | |||
22 | /** |
||
23 | * @var bool |
||
24 | */ |
||
25 | private $autowire = true; |
||
26 | |||
27 | /** |
||
28 | * @var bool |
||
29 | */ |
||
30 | private $annotations = false; |
||
31 | |||
32 | 20 | public function __construct() |
|
36 | |||
37 | /** |
||
38 | * @param bool $autowire |
||
39 | */ |
||
40 | 20 | public function setAutowire(bool $autowire): void |
|
44 | |||
45 | /** |
||
46 | * @return bool |
||
47 | */ |
||
48 | 19 | private function isAutowireEnabled(): bool |
|
52 | |||
53 | /** |
||
54 | * @param bool $annotations |
||
55 | */ |
||
56 | 1 | public function setAnnotations(bool $annotations): void |
|
60 | |||
61 | /** |
||
62 | * @return bool |
||
63 | */ |
||
64 | 19 | private function areAnnotationsEnabled(): bool |
|
68 | |||
69 | /** |
||
70 | * @param array $definitions |
||
71 | * |
||
72 | * @throws ContainerException |
||
73 | */ |
||
74 | 15 | public function addDefinitions(array $definitions): void |
|
84 | |||
85 | /** |
||
86 | * @return ArrayObject |
||
87 | */ |
||
88 | 19 | private function getDefinitions(): ArrayObject |
|
92 | |||
93 | /** |
||
94 | * @return Container |
||
95 | */ |
||
96 | 19 | public function build(): Container |
|
106 | |||
107 | /** |
||
108 | * @return void |
||
109 | */ |
||
110 | 20 | private function init(): void |
|
115 | } |
||
116 |