Conditions | 6 |
Paths | 2 |
Total Lines | 14 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
17 | public function match(\ReflectionProperty $property, $givenName) |
||
18 | { |
||
19 | $propertyName = $property->getName(); |
||
20 | if ($propertyName === $givenName |
||
21 | || $propertyName === $this->camelize($givenName) //ErrorCode = error_code |
||
22 | || $propertyName === lcfirst($this->camelize($givenName)) // errorCode => error_code |
||
23 | || $propertyName === strtolower($this->camelize($givenName)) // errorcode => error_code |
||
24 | || strtolower($propertyName) === $givenName // errorCode => errorcode |
||
25 | ) { |
||
26 | return true; |
||
27 | } |
||
28 | |||
29 | return false; |
||
30 | } |
||
31 | |||
41 | } |