| Total Complexity | 11 |
| Total Lines | 40 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class RelationColumn extends DataColumn |
||
| 10 | { |
||
| 11 | protected $labelAttribute; |
||
| 12 | |||
| 13 | protected function checkConfiguration() |
||
| 14 | { |
||
| 15 | parent::checkConfiguration(); |
||
| 16 | if (!is_string($this->labelAttribute) || empty($this->labelAttribute)) { |
||
| 17 | throw new DataGridException('labelAttribute property must be set for RelationColumn'); |
||
| 18 | } |
||
| 19 | } |
||
| 20 | |||
| 21 | public function getHeadContent() |
||
| 28 | ); |
||
| 29 | } |
||
| 30 | |||
| 31 | public function getCellContent($entity) |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @param string $labelAttribute |
||
| 45 | */ |
||
| 46 | protected function setLabelAttribute(string $labelAttribute): void |
||
| 49 | } |
||
| 50 | } |
||
| 51 |