1 | <?php |
||
42 | class ObjectResolver extends ObjectAbstract implements ConfigInterface, DelegatorAwareInterface, ContainerAwareInterface |
||
43 | { |
||
44 | use DelegatorAwareTrait, ContainerAwareTrait; |
||
45 | |||
46 | /** |
||
47 | * Get '#service_id' from the container |
||
48 | * |
||
49 | * {@inheritDoc} |
||
50 | */ |
||
51 | public function get(/*# string */ $id, $default = null) |
||
59 | |||
60 | /** |
||
61 | * Has '#service_id' in the container ? |
||
62 | * |
||
63 | * {@inheritDoc} |
||
64 | */ |
||
65 | public function has(/*# string */ $id)/*# : bool */ |
||
72 | |||
73 | /** |
||
74 | * Convert '#service_id' to 'service_id' |
||
75 | * |
||
76 | * @param string $serviceId |
||
77 | * @return string |
||
78 | * @access protected |
||
79 | */ |
||
80 | public static function getRawId(/*# string */ $serviceId)/*# : string */ |
||
84 | |||
85 | /** |
||
86 | * Convert 'service_id' to '#service_id' |
||
87 | * |
||
88 | * @param string $rawId |
||
89 | * @return string |
||
90 | * @access public |
||
91 | * @static |
||
92 | */ |
||
93 | public static function getServiceId(/*# string */ $rawId)/*# : string */ |
||
97 | |||
98 | /** |
||
99 | * Is $serviceId something like '#service_id' ? |
||
100 | * |
||
101 | * @param mixed $serviceId |
||
102 | * @return bool |
||
103 | * @access public |
||
104 | * @static |
||
105 | */ |
||
106 | public static function isServiceId($serviceId)/*# : bool */ |
||
116 | } |
||
117 |