/** * 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; }
/** * 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; }