Пример #1
0
 /**
  * @param string|null $cx The center's x coordinate.
  * @param string|null $cy The center's y coordinate.
  * @param string|null $r  The radius.
  */
 public function __construct($cx = null, $cy = null, $r = null)
 {
     parent::__construct();
     $this->setAttributeOptional('cx', $cx);
     $this->setAttributeOptional('cy', $cy);
     $this->setAttributeOptional('r', $r);
 }
Пример #2
0
 /**
  * @param string|null $x1 The first point's x coordinate.
  * @param string|null $y1 The first point's y coordinate.
  * @param string|null $x2 The second point's x coordinate.
  * @param string|null $y2 The second point's y coordinate.
  */
 public function __construct($x1 = null, $y1 = null, $x2 = null, $y2 = null)
 {
     parent::__construct();
     $this->setAttributeOptional('x1', $x1);
     $this->setAttributeOptional('y1', $y1);
     $this->setAttributeOptional('x2', $x2);
     $this->setAttributeOptional('y2', $y2);
 }
Пример #3
0
 /**
  * @param string|null $x      The x coordinate of the upper left corner.
  * @param string|null $y      The y coordinate of the upper left corner.
  * @param string|null $width  The width.
  * @param string|null $height The height.
  */
 public function __construct($x = null, $y = null, $width = null, $height = null)
 {
     parent::__construct();
     $this->setAttributeOptional('x', $x);
     $this->setAttributeOptional('y', $y);
     $this->setAttributeOptional('width', $width);
     $this->setAttributeOptional('height', $height);
 }
Пример #4
0
 public function __construct()
 {
     parent::__construct();
     $this->children = array();
 }
Пример #5
0
 /**
  * @param array[] $points Array of points (float 2-tuples).
  */
 public function __construct($points)
 {
     parent::__construct();
     $this->points = $points;
 }
Пример #6
0
 /**
  * @param string|null $d The path description.
  */
 public function __construct($d = null)
 {
     parent::__construct();
     $this->setAttributeOptional('d', $d);
 }