Total Complexity | 3 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class BaseObjectMethods extends CollectionMethods |
||
19 | { |
||
20 | |||
21 | /** |
||
22 | * Get all methods from an object. |
||
23 | * |
||
24 | * |
||
25 | */ |
||
26 | public static function methods(object $object) : array |
||
27 | { |
||
28 | 1 | return get_class_methods($object::class); |
|
29 | } |
||
30 | 1 | ||
31 | /** |
||
32 | * Unpack an object's properties. |
||
33 | * |
||
34 | * |
||
35 | */ |
||
36 | public static function unpack(object $object, mixed $attribute = null) : object |
||
44 | 1 | } |
|
45 | } |
||
46 |