| 1 | <?php |
||
| 13 | class Row extends Component implements IRow |
||
| 14 | { |
||
| 15 | const TAG = 'tr'; |
||
| 16 | |||
| 17 | /** @var Cells */ |
||
| 18 | protected $cells; |
||
| 19 | |||
| 20 | /** @var Actions */ |
||
| 21 | protected $actions; |
||
| 22 | |||
| 23 | /** @var IEntity */ |
||
| 24 | protected $entity; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Row constructor. |
||
| 28 | * |
||
| 29 | * @param Cells $cells |
||
| 30 | * @param Actions|null $actions |
||
| 31 | * @param array $attributes |
||
| 32 | * @param string $tag |
||
| 33 | */ |
||
| 34 | 7 | public function __construct(Cells $cells, Actions $actions = null, array $attributes = [], string $tag = self::TAG) |
|
| 43 | |||
| 44 | /** |
||
| 45 | * @return string |
||
| 46 | */ |
||
| 47 | public function getCells(): Cells |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @return Actions |
||
| 54 | */ |
||
| 55 | public function getActions(): Actions |
||
| 59 | |||
| 60 | /** |
||
| 61 | * @return IEntity |
||
| 62 | */ |
||
| 63 | public function getEntity(): IEntity |
||
| 67 | |||
| 68 | /** |
||
| 69 | * @param IEntity $entity |
||
| 70 | */ |
||
| 71 | 1 | public function setEntity(IEntity $entity) |
|
| 83 | |||
| 84 | /** |
||
| 85 | * @return string |
||
| 86 | */ |
||
| 87 | 2 | public function __toString(): string |
|
| 105 | } |
||
| 106 |