. * */ defined('FULL_PATH') or die('restricted access!'); /** * Point of coordinates (X,Y). * The value of X isn't really of interest, but X is used as a label to display on the horizontal axis. * * @author Jean-Marc Trémeaux (jm.tremeaux at gmail.com) */ class LibchartPoint { private $x; private $y; /** * Creates a new sampling point of coordinates (x, y) * * @param integer x coordinate (label) * @param integer y coordinate (value) */ public function LibchartPoint($x, $y) { $this->x = $x; $this->y = $y; } /** * Gets the x coordinate (label). * * @return integer x coordinate (label) */ public function getX() { return $this->x; } /** * Gets the y coordinate (value). * * @return integer y coordinate (value) */ public function getY() { return $this->y; } }