| Conditions | 4 |
| Paths | 3 |
| Total Lines | 12 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 21 | */ |
||
| 22 | function define_object(object $object, array $properties, array $methodPrefixes = ['set', 'add']): object |
||
| 23 | { |
||
| 24 | 2 | return (new ObjectOperation\DefineObject)->execute($object, $properties, $methodPrefixes); |
|
| 25 | } |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @throws PropertyNotAccessibleException |
||
| 29 | */ |
||
| 30 | function get_object_property_value(object $object, string $property, array $methodPrefixes = ['get', 'is']) |
||
| 31 | { |
||
| 32 | 1 | return (new ObjectOperation\GetPropertyValue)->execute($object, $property, $methodPrefixes); |
|
| 33 | } |
||
| 42 |