| 1 | <?php |
||
| 10 | class Map extends Widget |
||
| 11 | { |
||
| 12 | /** |
||
| 13 | * @var array |
||
| 14 | */ |
||
| 15 | protected $dataset; |
||
| 16 | |||
| 17 | 3 | public function __construct() |
|
| 18 | { |
||
| 19 | 3 | $this->dataset = array(); |
|
| 20 | 3 | } |
|
| 21 | |||
| 22 | /** |
||
| 23 | * @return array |
||
| 24 | */ |
||
| 25 | 1 | public function getPoints() |
|
| 26 | { |
||
| 27 | 1 | return $this->dataset; |
|
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param Point $point |
||
| 32 | * |
||
| 33 | * @return $this |
||
| 34 | */ |
||
| 35 | 2 | public function addPoint(Point $point) |
|
| 41 | |||
| 42 | /** |
||
| 43 | * {@inheritdoc} |
||
| 44 | */ |
||
| 45 | 2 | public function getData() |
|
| 54 | } |
||
| 55 |