. * */ defined('FULL_PATH') or die('restricted access!'); /** * Set of data in the form of (x, y) items. * * @author Jean-Marc Trémeaux (jm.tremeaux at gmail.com) * Created on 10 may 2007 */ class LibchartXYDataSet extends LibchartDataSet { private $pointList; /** * Constructor of XYDataSet. * */ public function __construct() { $this->pointList = array(); } /** * Add a new point to the dataset. * * @param Point Point to add to the dataset */ public function addPoint($point) { array_push($this->pointList, $point); } /** * Getter of pointList. * * @return List of points. */ public function getPointList() { return $this->pointList; } }