| Conditions | 3 |
| Paths | 3 |
| Total Lines | 18 |
| Code Lines | 11 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 33 | public function hasProperty( |
||
| 34 | ClassReflection $classReflection, |
||
| 35 | string $propertyName |
||
| 36 | ) : bool { |
||
| 37 | $className = $classReflection->getName(); |
||
| 38 | |||
| 39 | $property = ucfirst($propertyName); |
||
| 40 | |||
| 41 | return |
||
| 42 | is_a($className, DaftObject::class, true) && |
||
| 43 | ( |
||
| 44 | $classReflection->getNativeReflection()->hasMethod( |
||
| 45 | 'Get' . |
||
| 46 | $property |
||
| 47 | ) || |
||
| 48 | $classReflection->getNativeReflection()->hasMethod( |
||
| 49 | 'Set' . |
||
| 50 | $property |
||
| 51 | ) |
||
| 66 |