1 | <?php |
||
36 | class ProviderWrapper implements ProviderInterface |
||
37 | { |
||
38 | |||
39 | /** |
||
40 | * The provider instance to be wrapped. |
||
41 | * |
||
42 | * @var \AppserverIo\Di\ProviderInterface |
||
43 | */ |
||
44 | protected $provider; |
||
45 | |||
46 | /** |
||
47 | * Injects the passed provider instance into this wrapper. |
||
48 | * |
||
49 | * @param \AppserverIo\Psr\Di\ProviderInterface $provider The provider instance used for initialization |
||
50 | * |
||
51 | * @return void |
||
52 | */ |
||
53 | public function injectProvider(ProviderInterface $provider) |
||
57 | |||
58 | /** |
||
59 | * Return's the provider instance. |
||
60 | * |
||
61 | * @return \AppserverIo\Psr\Di\ProviderInterface The provider instance |
||
62 | */ |
||
63 | public function getProvider() |
||
67 | |||
68 | /** |
||
69 | * The managers unique identifier. |
||
70 | * |
||
71 | * @return string The unique identifier |
||
72 | */ |
||
73 | public function getIdentifier() |
||
77 | |||
78 | /** |
||
79 | * Has been automatically invoked by the container after the application |
||
80 | * instance has been created. |
||
81 | * |
||
82 | * @param \AppserverIo\Psr\Application\ApplicationInterface $application The application instance |
||
83 | * |
||
84 | * @return void |
||
85 | */ |
||
86 | public function initialize(ApplicationInterface $application) |
||
90 | |||
91 | /** |
||
92 | * Returns the value with the passed name from the context. |
||
93 | * |
||
94 | * @param string $key The key of the value to return from the context. |
||
95 | * |
||
96 | * @return mixed The requested attribute |
||
97 | */ |
||
98 | public function getAttribute($key) |
||
102 | |||
103 | /** |
||
104 | * Returns a new instance of the passed class name. |
||
105 | * |
||
106 | * @param string $className The fully qualified class name to return the instance for |
||
107 | * @param string|null $sessionId The session-ID, necessary to inject stateful session beans (SFBs) |
||
108 | * @param array $args Arguments to pass to the constructor of the instance |
||
109 | * |
||
110 | * @return object The instance itself |
||
111 | */ |
||
112 | public function newInstance($className, $sessionId = null, array $args = array()) |
||
116 | |||
117 | /** |
||
118 | * Returns the naming context instance. |
||
119 | * |
||
120 | * @return \AppserverIo\Psr\Naming\InitialContext The naming context instance |
||
121 | */ |
||
122 | public function getInitialContext() |
||
126 | |||
127 | /** |
||
128 | * Returns the applications naming directory. |
||
129 | * |
||
130 | * @return \AppserverIo\Psr\Naming\NamingDirectoryInterface The applications naming directory interface |
||
131 | */ |
||
132 | public function getNamingDirectory() |
||
136 | |||
137 | /** |
||
138 | * Creates a new new instance of the annotation type, defined in the passed reflection annotation. |
||
139 | * |
||
140 | * @param \AppserverIo\Lang\Reflection\AnnotationInterface $annotation The reflection annotation we want to create the instance for |
||
141 | * |
||
142 | * @return \AppserverIo\Lang\Reflection\AnnotationInterface The real annotation instance |
||
143 | */ |
||
144 | public function newAnnotationInstance(AnnotationInterface $annotation) |
||
148 | |||
149 | /** |
||
150 | * Returns a new reflection class intance for the passed class name. |
||
151 | * |
||
152 | * @param string $className The class name to return the reflection class instance for |
||
153 | * |
||
154 | * @return \AppserverIo\Lang\Reflection\ReflectionClass The reflection instance |
||
155 | */ |
||
156 | public function newReflectionClass($className) |
||
160 | |||
161 | /** |
||
162 | * Returns a reflection class intance for the passed class name. |
||
163 | * |
||
164 | * @param string $className The class name to return the reflection class instance for |
||
165 | * |
||
166 | * @return \AppserverIo\Lang\Reflection\ReflectionClass The reflection instance |
||
167 | * @see \AppserverIo\Psr\Di\ProviderInterface::getReflectionClass() |
||
168 | */ |
||
169 | public function getReflectionClass($className) |
||
173 | |||
174 | /** |
||
175 | * Returns a reflection class intance for the passed class name. |
||
176 | * |
||
177 | * @param object $instance The instance to return the reflection class instance for |
||
178 | * |
||
179 | * @return \AppserverIo\Lang\Reflection\ReflectionClass The reflection instance |
||
180 | * @see \AppserverIo\Psr\Di\ProviderInterface::newReflectionClass() |
||
181 | * @see \AppserverIo\Psr\Di\ProviderInterface::getReflectionClass() |
||
182 | */ |
||
183 | public function getReflectionClassForObject($instance) |
||
187 | |||
188 | /** |
||
189 | * Injects the dependencies of the passed instance. |
||
190 | * |
||
191 | * @param object $instance The instance to inject the dependencies for |
||
192 | * @param string|null $sessionId The session-ID, necessary to inject stateful session beans (SFBs) |
||
193 | * |
||
194 | * @return void |
||
195 | */ |
||
196 | public function injectDependencies($instance, $sessionId = null) |
||
200 | } |
||
201 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..