1 | <?php |
||
12 | final class ServiceDefinition |
||
13 | { |
||
14 | /** |
||
15 | * @var string |
||
16 | */ |
||
17 | private $name; |
||
18 | |||
19 | /** |
||
20 | * @var string |
||
21 | */ |
||
22 | private $class; |
||
23 | |||
24 | /** |
||
25 | * @var bool |
||
26 | */ |
||
27 | private $isSingleton; |
||
28 | |||
29 | /** |
||
30 | * @var bool |
||
31 | */ |
||
32 | private $isFactory; |
||
33 | |||
34 | /** |
||
35 | * @var bool |
||
36 | */ |
||
37 | private $isAlias; |
||
38 | |||
39 | /** |
||
40 | * @var array |
||
41 | */ |
||
42 | private $arguments; |
||
43 | |||
44 | /** |
||
45 | * @var array |
||
46 | */ |
||
47 | private $methods; |
||
48 | |||
49 | /** |
||
50 | * @param string $name |
||
51 | * @param array $config |
||
52 | * @param bool $singletonDefault |
||
53 | * |
||
54 | * @throws InvalidArgumentException |
||
55 | * @throws InvalidConfigException |
||
56 | */ |
||
57 | public function __construct($name, array $config, $singletonDefault = false) |
||
70 | |||
71 | /** |
||
72 | * @return string |
||
73 | */ |
||
74 | public function getName() |
||
78 | |||
79 | /** |
||
80 | * @return string |
||
81 | */ |
||
82 | public function getClass() |
||
86 | |||
87 | /** |
||
88 | * @return bool |
||
89 | */ |
||
90 | public function isSingleton() |
||
94 | |||
95 | /** |
||
96 | * @return bool |
||
97 | */ |
||
98 | public function isFactory() |
||
102 | |||
103 | /** |
||
104 | * @return bool |
||
105 | */ |
||
106 | public function isAlias() |
||
110 | |||
111 | /** |
||
112 | * @return array |
||
113 | */ |
||
114 | public function getArguments() |
||
118 | |||
119 | /** |
||
120 | * @return array |
||
121 | */ |
||
122 | public function getMethods() |
||
126 | |||
127 | /** |
||
128 | * @param string $name |
||
129 | * @param array $config |
||
130 | * |
||
131 | * @throws InvalidConfigException |
||
132 | * |
||
133 | * @return string |
||
134 | */ |
||
135 | private function className($name, array $config) |
||
163 | } |
||
164 |