Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/general/libchart/classes/model/Point.php
Show All 29 Lines | |||||
private $y; | private $y; | ||||
/** | /** | ||||
* Creates a new sampling point of coordinates (x, y) | * Creates a new sampling point of coordinates (x, y) | ||||
* | * | ||||
* @param integer x coordinate (label) | * @param integer x coordinate (label) | ||||
* @param integer y coordinate (value) | * @param integer y coordinate (value) | ||||
*/ | */ | ||||
public function LibchartPoint($x, $y) { | public function __construct($x, $y) { | ||||
$this->x = $x; | $this->x = $x; | ||||
$this->y = $y; | $this->y = $y; | ||||
} | } | ||||
/** | /** | ||||
* Gets the x coordinate (label). | * Gets the x coordinate (label). | ||||
* | * | ||||
* @return integer x coordinate (label) | * @return integer x coordinate (label) | ||||
*/ | */ | ||||
public function getX() { | public function getX() { | ||||
return $this->x; | return $this->x; | ||||
} | } | ||||
/** | /** | ||||
* Gets the y coordinate (value). | * Gets the y coordinate (value). | ||||
* | * | ||||
* @return integer y coordinate (value) | * @return integer y coordinate (value) | ||||
*/ | */ | ||||
public function getY() { | public function getY() { | ||||
return $this->y; | return $this->y; | ||||
} | } | ||||
} | } | ||||
No newline at end of file |