| Total Complexity | 7 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 20 | final class Field |
||
| 21 | { |
||
| 22 | use FieldAccesorTrait; |
||
| 23 | |||
| 24 | private string $name; |
||
| 25 | private ViewTypeInterface $viewType; |
||
| 26 | private bool $sortable; |
||
| 27 | private bool $link; |
||
| 28 | |||
| 29 | public function __construct(string $name, ViewTypeInterface $viewType, $sortable = false, bool $link = false) |
||
| 30 | { |
||
| 31 | $this->name = $name; |
||
| 32 | $this->viewType = $viewType; |
||
| 33 | $this->sortable = $sortable; |
||
| 34 | $this->link = $link; |
||
| 35 | } |
||
| 36 | |||
| 37 | public function getName(): string |
||
| 38 | { |
||
| 39 | return $this->name; |
||
| 40 | } |
||
| 41 | |||
| 42 | public function getOutput($item) |
||
| 47 | } |
||
| 48 | |||
| 49 | public function getViewType(): ViewTypeInterface |
||
| 50 | { |
||
| 51 | return $this->viewType; |
||
| 52 | } |
||
| 53 | |||
| 54 | public function isSortable(): bool |
||
| 55 | { |
||
| 56 | return $this->sortable; |
||
| 57 | } |
||
| 58 | |||
| 59 | public function isLink(): bool |
||
| 62 | } |
||
| 63 | |||
| 64 | public function getHeaderName(): string |
||
| 65 | { |
||
| 69 | } |
||
| 70 | } |
||
| 71 |