| Conditions | 2 |
| Paths | 2 |
| Total Lines | 15 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 40 | 16 | public static function DaftSortableObjectProperties() : array |
|
| 41 | { |
||
| 42 | 16 | if ( ! is_a(static::class, DaftSortableObject::class, true)) { |
|
| 43 | 4 | throw Exceptions\Factory::ClassDoesNotImplementClassException( |
|
| 44 | 4 | static::class, |
|
| 45 | 4 | DaftSortableObject::class |
|
| 46 | ); |
||
| 47 | } |
||
| 48 | |||
| 49 | /** |
||
| 50 | * @var array<int, string> |
||
| 51 | */ |
||
| 52 | 12 | $out = constant(static::class . '::SORTABLE_PROPERTIES'); |
|
| 53 | |||
| 54 | 12 | return $out; |
|
| 55 | } |
||
| 57 |