| 1 | <?php |
||
| 10 | class Text extends Widget |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array Messages |
||
| 14 | */ |
||
| 15 | protected $items; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Set the items property. |
||
| 19 | * |
||
| 20 | * @param array $items Set of items to add to the widget |
||
| 21 | * |
||
| 22 | * @return $this |
||
| 23 | */ |
||
| 24 | 1 | public function setItems($items) |
|
| 30 | |||
| 31 | /** |
||
| 32 | * Return the items attribute. |
||
| 33 | * |
||
| 34 | * @return array |
||
| 35 | */ |
||
| 36 | 4 | public function getItems() |
|
| 44 | |||
| 45 | /** |
||
| 46 | * Add an item to the item list. |
||
| 47 | * |
||
| 48 | * @param \CarlosIO\Geckoboard\Data\Text\Item $item Item to be added |
||
| 49 | * |
||
| 50 | * @return $this |
||
| 51 | */ |
||
| 52 | 3 | public function addItem(Item $item) |
|
| 58 | |||
| 59 | /** |
||
| 60 | * {@inheritdoc} |
||
| 61 | */ |
||
| 62 | 4 | public function getData() |
|
| 73 | } |
||
| 74 |