| Total Complexity | 2 |
| Total Lines | 37 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 12 | class Cell extends Tag implements ICell |
||
| 13 | { |
||
| 14 | public const INTENT_ACTIONS = 'actions'; |
||
| 15 | |||
| 16 | public const GROUP_ACTIONS = 'actions'; |
||
| 17 | |||
| 18 | protected const DEFAULT_TAG = Html5::TAG_TD; |
||
| 19 | |||
| 20 | protected string $group = ''; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * Cell constructor. |
||
| 24 | * |
||
| 25 | * @param INode[]|INode|string|null $content |
||
| 26 | * @param string $group |
||
| 27 | * @param string[] $intents |
||
| 28 | * @param array<string,Attribute>|null $attributes |
||
| 29 | * @param string|null $tag |
||
| 30 | */ |
||
| 31 | public function __construct( |
||
| 32 | $content, |
||
| 33 | string $group, |
||
| 34 | array $intents = [], |
||
| 35 | ?array $attributes = null, |
||
| 36 | ?string $tag = null |
||
| 37 | ) { |
||
| 38 | parent::__construct($content, $intents, $attributes, $tag); |
||
| 39 | |||
| 40 | $this->group = $group; |
||
| 41 | } |
||
| 42 | |||
| 43 | /** |
||
| 44 | * @return string |
||
| 45 | */ |
||
| 46 | public function getGroup(): string |
||
| 49 | } |
||
| 50 | } |
||
| 51 |