1 | <?php |
||
15 | class ReflectionClass |
||
16 | { |
||
17 | private $class; |
||
18 | private $properties; |
||
19 | private $injectionStrategies; |
||
20 | private $instanciator; |
||
21 | |||
22 | 5 | public function __construct( |
|
39 | |||
40 | /** |
||
41 | * Add a property to be injected in the new object |
||
42 | * |
||
43 | * @param string $property |
||
44 | * @param mixed $value |
||
45 | * |
||
46 | * @return self |
||
47 | */ |
||
48 | 2 | public function withProperty(string $property, $value): self |
|
57 | |||
58 | /** |
||
59 | * Add a set of properties that need to be injected |
||
60 | * |
||
61 | * @param array $properties |
||
62 | * |
||
63 | * @return self |
||
64 | */ |
||
65 | 1 | public function withProperties(array $properties): self |
|
74 | |||
75 | /** |
||
76 | * Return the collection of properties that will be injected in the object |
||
77 | * |
||
78 | * @return CollectionInterface |
||
79 | */ |
||
80 | 1 | public function getProperties(): CollectionInterface |
|
84 | |||
85 | /** |
||
86 | * Return the list of injection strategies used |
||
87 | * |
||
88 | * @return TypedCollectionInterface |
||
89 | */ |
||
90 | 1 | public function getInjectionStrategies(): TypedCollectionInterface |
|
94 | |||
95 | /** |
||
96 | * Return the object instanciator |
||
97 | * |
||
98 | * @return InstanciatorInterface |
||
99 | */ |
||
100 | 1 | public function getInstanciator(): InstanciatorInterface |
|
104 | |||
105 | /** |
||
106 | * Return a new instance of the class |
||
107 | * |
||
108 | * @return object |
||
109 | */ |
||
110 | 2 | public function buildObject() |
|
129 | } |
||
130 |
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.