* @package cleversvg * @subpackage elements */ class csLine extends csBaseShape { protected $xml_node_name = 'line'; /** * Class constructor * */ public function __construct($x1=null, $y1=null, $x2=null, $y2=null, $attrs=array()) { $this->setX1($x1); $this->setY1($y1); $this->setX2($x2); $this->setY2($y2); $this->attributes = array_merge($attrs, $this->attributes); } /** * The start x-axis coordinate of the line * */ public function setX1($x1) { $this->setAttribute('x1', $x1); } /** * The start y-axis coordinate of the line * */ public function setY1($y1) { $this->setAttribute('y1', $y1); } /** * The end x-axis coordinate of the line * */ public function setX2($x2) { $this->setAttribute('x2', $x2); } /** * The end y-axis coordinate of the line * */ public function setY2($y2) { $this->setAttribute('y2', $y2); } }