@@ -7,7 +7,6 @@ |
||
7 | 7 | use MetaHydrator\MetaHydrator; |
8 | 8 | use MetaHydrator\Validator\ValidatorInterface; |
9 | 9 | use Mouf\Hydrator\Hydrator; |
10 | -use Mouf\Hydrator\TdbmHydrator; |
|
11 | 10 | |
12 | 11 | /** |
13 | 12 | * A custom class parser based on the MetaHydrator behaviour |
@@ -102,7 +102,7 @@ |
||
102 | 102 | */ |
103 | 103 | protected function findGetterMethod(ReflectionClass $reflectionClass, string $field) |
104 | 104 | { |
105 | - foreach ($reflectionClass->getMethods($this->ignoreProtected ? ReflectionMethod::IS_PUBLIC|ReflectionMethod::IS_PROTECTED|ReflectionMethod::IS_PRIVATE : ReflectionMethod::IS_PUBLIC) as $reflectionMethod) { |
|
105 | + foreach ($reflectionClass->getMethods($this->ignoreProtected ? ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED | ReflectionMethod::IS_PRIVATE : ReflectionMethod::IS_PUBLIC) as $reflectionMethod) { |
|
106 | 106 | if (!$reflectionMethod->isStatic() |
107 | 107 | && $reflectionMethod->getNumberOfRequiredParameters() == 0 |
108 | 108 | && strcasecmp($reflectionMethod->getName(), "get$field") == 0) { |
@@ -85,7 +85,7 @@ |
||
85 | 85 | */ |
86 | 86 | protected function findSetterMethod(ReflectionClass $reflectionClass, string $field) |
87 | 87 | { |
88 | - foreach ($reflectionClass->getMethods($this->ignoreProtected ? ReflectionMethod::IS_PUBLIC|ReflectionMethod::IS_PROTECTED|ReflectionMethod::IS_PRIVATE : ReflectionMethod::IS_PUBLIC) as $reflectionMethod) { |
|
88 | + foreach ($reflectionClass->getMethods($this->ignoreProtected ? ReflectionMethod::IS_PUBLIC | ReflectionMethod::IS_PROTECTED | ReflectionMethod::IS_PRIVATE : ReflectionMethod::IS_PUBLIC) as $reflectionMethod) { |
|
89 | 89 | if (!$reflectionMethod->isStatic() |
90 | 90 | && $reflectionMethod->getNumberOfRequiredParameters() == 1 |
91 | 91 | && strcasecmp($reflectionMethod->getName(), "set$field") == 0) { |