1 | <?php |
||
9 | final class ServiceDefinition |
||
10 | { |
||
11 | /** |
||
12 | * @var string |
||
13 | */ |
||
14 | private $name; |
||
15 | |||
16 | /** |
||
17 | * @var string |
||
18 | */ |
||
19 | private $class; |
||
20 | |||
21 | /** |
||
22 | * @var bool |
||
23 | */ |
||
24 | private $isSingleton; |
||
25 | |||
26 | /** |
||
27 | * @var bool |
||
28 | */ |
||
29 | private $isFactory; |
||
30 | |||
31 | /** |
||
32 | * @var bool |
||
33 | */ |
||
34 | private $isAlias; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | private $arguments; |
||
40 | |||
41 | /** |
||
42 | * @var array |
||
43 | */ |
||
44 | private $methods; |
||
45 | |||
46 | /** |
||
47 | * @param string $name |
||
48 | * @param array $config |
||
49 | * @param bool $singletonDefault |
||
50 | * |
||
51 | * @throws InvalidArgumentException |
||
52 | * @throws InvalidConfigException |
||
53 | */ |
||
54 | public function __construct($name, array $config, $singletonDefault = false) |
||
67 | |||
68 | /** |
||
69 | * @return string |
||
70 | */ |
||
71 | public function getName() |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | public function getClass() |
||
83 | |||
84 | /** |
||
85 | * @return bool |
||
86 | */ |
||
87 | public function isSingleton() |
||
91 | |||
92 | /** |
||
93 | * @return bool |
||
94 | */ |
||
95 | public function isFactory() |
||
99 | |||
100 | /** |
||
101 | * @return bool |
||
102 | */ |
||
103 | public function isAlias() |
||
107 | |||
108 | /** |
||
109 | * @return array |
||
110 | */ |
||
111 | public function getArguments() |
||
115 | |||
116 | /** |
||
117 | * @return array |
||
118 | */ |
||
119 | public function getMethods() |
||
123 | |||
124 | /** |
||
125 | * @param string $name |
||
126 | * @param array $config |
||
127 | * |
||
128 | * @throws InvalidConfigException |
||
129 | * |
||
130 | * @return string |
||
131 | */ |
||
132 | private function className($name, array $config) |
||
160 | } |
||
161 |