| Total Complexity | 9 |
| Total Lines | 51 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class MultipleValue extends AMultipleValue |
||
| 18 | { |
||
| 19 | protected AField $field; |
||
| 20 | |||
| 21 | 2 | public function __construct(AField $field, ?string $label = null, string $alias = '') |
|
| 22 | { |
||
| 23 | 2 | $this->field = $field; |
|
| 24 | 2 | $this->alias = $alias; |
|
| 25 | 2 | $this->label = $label; |
|
| 26 | 2 | } |
|
| 27 | |||
| 28 | 2 | public function getAlias(): string |
|
| 29 | { |
||
| 30 | 2 | return empty($this->alias) |
|
| 31 | 1 | ? (empty($this->columnName) |
|
| 32 | 1 | ? $this->field->getAlias() : $this->columnName) |
|
| 33 | 2 | : $this->alias |
|
| 34 | ; |
||
| 35 | } |
||
| 36 | |||
| 37 | 2 | public function getField(): AField |
|
| 38 | { |
||
| 39 | 2 | return $this->field; |
|
| 40 | } |
||
| 41 | |||
| 42 | 2 | public function setDataSourceConnector(IIterableConnector $dataSource): void |
|
| 43 | { |
||
| 44 | 2 | $this->field->setDataSourceConnector($dataSource); |
|
| 45 | 2 | } |
|
| 46 | |||
| 47 | 2 | public function setForm(Form $form): void |
|
| 48 | { |
||
| 49 | 2 | $this->field->setForm($form); |
|
| 50 | 2 | } |
|
| 51 | |||
| 52 | 2 | public function add(): void |
|
| 56 | 2 | } |
|
| 57 | |||
| 58 | /** |
||
| 59 | * @throws RenderException |
||
| 60 | * @throws TableException |
||
| 61 | * @return string |
||
| 62 | */ |
||
| 63 | 2 | public function renderContent(): string |
|
| 68 | } |
||
| 69 | } |
||
| 70 |