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