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 array |
||
33 | */ |
||
34 | private $arguments; |
||
35 | |||
36 | /** |
||
37 | * @var array |
||
38 | */ |
||
39 | private $methods; |
||
40 | |||
41 | /** |
||
42 | * @param string $name |
||
43 | * @param array $config |
||
44 | * @param bool $singletonDefault |
||
45 | * |
||
46 | * @throws InvalidArgumentException |
||
47 | * @throws InvalidConfigException |
||
48 | */ |
||
49 | public function __construct($name, array $config, $singletonDefault = false) |
||
61 | |||
62 | /** |
||
63 | * @return string |
||
64 | */ |
||
65 | public function getName() |
||
69 | |||
70 | /** |
||
71 | * @return string |
||
72 | */ |
||
73 | public function getClass() |
||
77 | |||
78 | /** |
||
79 | * @return bool |
||
80 | */ |
||
81 | public function isSingleton() |
||
85 | |||
86 | /** |
||
87 | * @return bool |
||
88 | */ |
||
89 | public function isFactory() |
||
93 | |||
94 | /** |
||
95 | * @return array |
||
96 | */ |
||
97 | public function getArguments() |
||
101 | |||
102 | /** |
||
103 | * @return array |
||
104 | */ |
||
105 | public function getMethods() |
||
109 | |||
110 | /** |
||
111 | * @param string $name |
||
112 | * @param array $config |
||
113 | * |
||
114 | * @return string |
||
115 | * |
||
116 | * @throws InvalidConfigException |
||
117 | */ |
||
118 | private function className($name, array $config) |
||
134 | } |
||
135 |