Exemplo n.º 1
0
 /**
  * Constructs a Circle with the specified center point and radius.
  *
  * @param object Point $p The center point of this circle.
  * @param integer $radius The radius of this circle.
  */
 public function __construct(Point $p, $radius)
 {
     parent::__construct($p);
     $this->radius = $radius;
 }
Exemplo n.º 2
0
 /**
  * Constructs a Rectangle with the specified center point,
  * height and width.
  *
  * @param object Point $p The center point of this rectangle.
  * @param integer $height The height of this rectangle.
  * @param integer $width The width of this rectangle.
  */
 public function __construct(Point $p, $height, $width)
 {
     parent::__construct($p);
     $this->height = $height;
     $this->width = $width;
 }