| Total Complexity | 6 |
| Total Lines | 42 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 5 | abstract class Column |
||
| 6 | { |
||
| 7 | protected string $component = ''; |
||
| 8 | |||
| 9 | protected bool $sortable = false; |
||
| 10 | |||
| 11 | protected ?string $title = null; |
||
| 12 | |||
| 13 | protected string $field; |
||
| 14 | |||
| 15 | public function __construct(?string $title = null) |
||
| 23 | } |
||
| 24 | } |
||
| 25 | |||
| 26 | public function setFieldsKeys(...$args): static |
||
| 31 | } |
||
| 32 | |||
| 33 | public function sortable(bool $sortable = true): static |
||
| 38 | } |
||
| 39 | |||
| 40 | public function toArray(): array |
||
| 50 |