diff --git a/libchart/classes/view/primitive/Rectangle.php b/libchart/classes/view/primitive/Rectangle.php index bb84c1c..695bd16 100644 --- a/libchart/classes/view/primitive/Rectangle.php +++ b/libchart/classes/view/primitive/Rectangle.php @@ -52,7 +52,7 @@ class Rectangle { * @param x2 Right edge coordinate * @param y2 Bottom edge coordinate */ - public function Rectangle($x1, $y1, $x2, $y2) { + public function __construct($x1, $y1, $x2, $y2) { $this->x1 = $x1; $this->y1 = $y1; $this->x2 = $x2; @@ -77,4 +77,4 @@ public function getPaddedRectangle($padding) { return $rectangle; } } -?> \ No newline at end of file +?>