1 | <?php |
||
12 | class ReflectionClass |
||
13 | { |
||
14 | private $class; |
||
15 | private $properties; |
||
16 | private $injectionStrategies; |
||
17 | private $instanciator; |
||
18 | |||
19 | 5 | public function __construct( |
|
32 | |||
33 | /** |
||
34 | * Add a property to be injected in the new object |
||
35 | * |
||
36 | * @param string $property |
||
37 | * @param mixed $value |
||
38 | * |
||
39 | * @return self |
||
40 | */ |
||
41 | 2 | public function withProperty(string $property, $value): self |
|
50 | |||
51 | /** |
||
52 | * Add a set of properties that need to be injected |
||
53 | * |
||
54 | * @param array $properties |
||
55 | * |
||
56 | * @return self |
||
57 | */ |
||
58 | 1 | public function withProperties(array $properties): self |
|
67 | |||
68 | /** |
||
69 | * Return the collection of properties that will be injected in the object |
||
70 | * |
||
71 | * @return CollectionInterface |
||
72 | */ |
||
73 | 1 | public function getProperties(): CollectionInterface |
|
77 | |||
78 | /** |
||
79 | * Return the list of injection strategies used |
||
80 | * |
||
81 | * @return InjectionStrategies |
||
82 | */ |
||
83 | 1 | public function getInjectionStrategies(): InjectionStrategies |
|
87 | |||
88 | /** |
||
89 | * Return the object instanciator |
||
90 | * |
||
91 | * @return InstanciatorInterface |
||
92 | */ |
||
93 | 1 | public function getInstanciator(): InstanciatorInterface |
|
97 | |||
98 | /** |
||
99 | * Return a new instance of the class |
||
100 | * |
||
101 | * @return object |
||
102 | */ |
||
103 | 2 | public function buildObject() |
|
124 | } |
||
125 |
This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.
This is most likely a typographical error or the method has been renamed.