| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 19 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 11 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 27 | 9 | public function supports(object $object, string $property, $value): bool  | 
            |
| 28 |     { | 
            ||
| 29 | 9 | $refl = new \ReflectionObject($object);  | 
            |
| 30 | |||
| 31 | 9 | $property = Str::of($property)  | 
            |
| 32 | 9 | ->camelize()  | 
            |
| 33 | 9 | ->toString();  | 
            |
| 34 | |||
| 35 | 9 |         if (!$refl->hasMethod($property)) { | 
            |
| 36 | 5 | return false;  | 
            |
| 37 | }  | 
            ||
| 38 | |||
| 39 | 7 | $property = $refl->getMethod($property);  | 
            |
| 40 | |||
| 41 | 7 |         if (!$property->isPublic()) { | 
            |
| 42 | 1 | return false;  | 
            |
| 43 | }  | 
            ||
| 44 | |||
| 45 | 7 | return $property->getNumberOfParameters() > 0;  | 
            |
| 46 | }  | 
            ||
| 67 |