Ejemplo n.º 1
0
 public function __construct($size, $image)
 {
     parent::__construct($size, $size, $image);
 }
Ejemplo n.º 2
0
 public function __construct($width)
 {
     parent::__construct($width, $width);
 }
Ejemplo n.º 3
0
 public function __construct($height)
 {
     parent::__construct($height, $height);
 }
Ejemplo n.º 4
0
 public function __construct($x, $y, $size)
 {
     parent::__construct($x, $y, $size, $size);
     $this->size = $size;
     //Expose size to reflection
 }
Ejemplo n.º 5
0
 public function __construct($side)
 {
     parent::__construct($side, $side);
 }
Ejemplo n.º 6
0
 public function __construct($x1, $y1, $x2, $y2)
 {
     parent::__construct($x1, $y1, $x2, $y2);
 }
Ejemplo n.º 7
0
 function __construct($h, $w, $r, $s1)
 {
     parent::__construct($h, $w, $r);
     //Square heights = square widths
     $this->height = $s1;
     $this->width = $s1;
     $this->numSides = 4;
     $this->sideLengths[0] = $s1;
     $this->sideLengths[1] = $s1;
     $this->sideLengths[2] = $s1;
     $this->sideLengths[3] = $s1;
     $this->cPerim();
     $this->cArea();
 }
Ejemplo n.º 8
0
 function __construct($bound, $bgcolor = NULL, $fgcolor = NULL, $surfaces = 63, $depth = 15)
 {
     parent::__construct($bound, $bgcolor, $fgcolor);
     $this->surfaces($surfaces);
     $this->depth($depth);
 }
Ejemplo n.º 9
0
 public function __construct($width, $height, $margin = 0)
 {
     parent::__construct($width, $height);
     $this->margin = $margin;
 }
Ejemplo n.º 10
0
 public function __construct($height)
 {
     // parent:: calls the parent class, Rectangle.
     parent::__construct($height, $height);
 }
Ejemplo n.º 11
0
 public function __construct($height)
 {
     parent::__construct($height, $height);
     // $this->height=$height;
     // $this->width=$height;
 }
Ejemplo n.º 12
0
 public function __construct($size, $image)
 {
     parent::__construct($size, $size, $image);
     $this->name = 'Square';
 }