| 1 | <?php |
||
| 20 | class Cell |
||
| 21 | { |
||
| 22 | /** |
||
| 23 | * @var mixed The content of the Cell |
||
| 24 | */ |
||
| 25 | protected $content; |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @var array Contains the attributes to associate with this table. |
||
| 29 | */ |
||
| 30 | protected $attributes = []; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param mixed $content |
||
| 34 | */ |
||
| 35 | public function __construct($content = null) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Returns the content of the Cell |
||
| 42 | * |
||
| 43 | * @return mixed |
||
| 44 | */ |
||
| 45 | public function getContent() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * Sets the content of the Cell |
||
| 52 | * |
||
| 53 | * @param mixed $content |
||
| 54 | * |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | public function setContent($content) |
||
| 63 | |||
| 64 | /** |
||
| 65 | * Returns the attributes of this Cell |
||
| 66 | * |
||
| 67 | * @return array |
||
| 68 | */ |
||
| 69 | public function getAttributes() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * Sets the atributes of the Cell |
||
| 76 | * |
||
| 77 | * @param array $newAttributes |
||
| 78 | * |
||
| 79 | * @return $this |
||
| 80 | */ |
||
| 81 | public function setAttributes(array $newAttributes) |
||
| 87 | } |
||
| 88 |