| 1 | <?php  | 
            ||
| 8 | class Row  | 
            ||
| 9 | { | 
            ||
| 10 | /**  | 
            ||
| 11 | * The cells in this row  | 
            ||
| 12 | * @var Cell[]  | 
            ||
| 13 | */  | 
            ||
| 14 | protected $cells = [];  | 
            ||
| 15 | |||
| 16 | /**  | 
            ||
| 17 | * The row style  | 
            ||
| 18 | * @var Style  | 
            ||
| 19 | */  | 
            ||
| 20 | protected $style;  | 
            ||
| 21 | |||
| 22 | /**  | 
            ||
| 23 | * Thw row manager  | 
            ||
| 24 | * @var RowManager  | 
            ||
| 25 | */  | 
            ||
| 26 | protected $rowManager;  | 
            ||
| 27 | |||
| 28 | /**  | 
            ||
| 29 | * Row constructor.  | 
            ||
| 30 | * @param Cell[] $cells  | 
            ||
| 31 | * @param Style|null $style  | 
            ||
| 32 | * @param RowManager $rowManager  | 
            ||
| 33 | */  | 
            ||
| 34 | 89 | public function __construct(array $cells, $style, RowManager $rowManager)  | 
            |
| 42 | |||
| 43 | /**  | 
            ||
| 44 | * @return Cell[] $cells  | 
            ||
| 45 | */  | 
            ||
| 46 | 76 | public function getCells()  | 
            |
| 50 | |||
| 51 | /**  | 
            ||
| 52 | * @param Cell[] $cells  | 
            ||
| 53 | * @return $this  | 
            ||
| 54 | */  | 
            ||
| 55 | 89 | public function setCells(array $cells)  | 
            |
| 64 | |||
| 65 | /**  | 
            ||
| 66 | * @return Style  | 
            ||
| 67 | */  | 
            ||
| 68 | 60 | public function getStyle()  | 
            |
| 72 | |||
| 73 | /**  | 
            ||
| 74 | * @param Style|null $style  | 
            ||
| 75 | * @return Row  | 
            ||
| 76 | */  | 
            ||
| 77 | 89 | public function setStyle($style)  | 
            |
| 83 | |||
| 84 | /**  | 
            ||
| 85 | * @param Style $style  | 
            ||
| 86 | * @return Row  | 
            ||
| 87 | */  | 
            ||
| 88 | public function applyStyle($style)  | 
            ||
| 94 | |||
| 95 | /**  | 
            ||
| 96 | * @param Cell $cell  | 
            ||
| 97 | * @return Row  | 
            ||
| 98 | */  | 
            ||
| 99 | 86 | public function addCell(Cell $cell)  | 
            |
| 105 | |||
| 106 | /**  | 
            ||
| 107 | * Returns whether a row has cells  | 
            ||
| 108 | *  | 
            ||
| 109 | * @return bool  | 
            ||
| 110 | */  | 
            ||
| 111 | 65 | public function hasCells()  | 
            |
| 115 | |||
| 116 | /**  | 
            ||
| 117 | * Detect whether this row is considered empty.  | 
            ||
| 118 | * An empty row has either no cells at all - or only empty cells  | 
            ||
| 119 | *  | 
            ||
| 120 | * @return bool  | 
            ||
| 121 | */  | 
            ||
| 122 | 30 | public function isEmpty()  | 
            |
| 126 | }  | 
            ||
| 127 |