예제 #1
0
파일: bridge.php 프로젝트: possientis/Prog
 public function __construct($x, $y, $radius, $drawAPI)
 {
     Shape::__construct($drawAPI);
     $this->x = $x;
     $this->y = $y;
     $this->radius = $radius;
 }
예제 #2
0
 public function __construct($dp, $x, $y, $r)
 {
     parent::__construct($dp);
     $this->_x = $x;
     $this->_y = $y;
     $this->_r = $r;
 }
예제 #3
0
 public function __construct($x, $y, $radius, IDrawer $drawer)
 {
     parent::__construct($drawer);
     $this->x = $x;
     $this->y = $y;
     $this->radius = $radius;
 }
예제 #4
0
 public function __construct($dX, $dY, $dRadius, DrawingAPI $oDrawingAPI)
 {
     parent::__construct($oDrawingAPI);
     $this->dX = $dX;
     $this->dY = $dY;
     $this->dRadius = $dRadius;
 }
예제 #5
0
 public function __construct($x, $y, $radius, DrawingAPI $api)
 {
     parent::__construct($api);
     $this->x = $x;
     $this->y = $y;
     $this->radius = $radius;
 }
 public function __construct(array $definition, ShapeMap $shapeMap)
 {
     $definition['type'] = 'structure';
     if (!isset($definition['members'])) {
         $definition['members'] = [];
     }
     parent::__construct($definition, $shapeMap);
 }
 public function __construct($x, $y, $color, $radius)
 {
     parent::__construct($x, $y, $color);
     $this->radius = is_numeric($radius) ? $radius : 0;
     echo "<br>Tworzę obiekt koło <br>";
     echo 'położenie x = ' . $this->getX() . '<br>';
     echo 'położenie y = ' . $this->getY() . '<br>';
     echo 'kolor  ' . $this->getColor() . '<br>';
     echo 'promień r = ' . $this->getRadius() . '<br>';
     echo '<hr>';
 }
예제 #8
0
 public function __construct(array $definition, ShapeMap $shapeMap)
 {
     $definition['type'] = 'timestamp';
     parent::__construct($definition, $shapeMap);
 }
예제 #9
0
파일: Circle.php 프로젝트: venril/painter
 public function __construct($x = 0, $y = 0, $radius = 0, $label = null)
 {
     parent::__construct($x, $y, $label);
     $this->setRadius($radius);
 }
 public function __construct($x, $y, $width, $height)
 {
     parent::__construct($x, $y);
     $this->width = $width;
     $this->height = $height;
 }
예제 #11
0
파일: index.php 프로젝트: nikulinn/php-2
 public function __construct($a, $r)
 {
     $this->name = "Куля";
     parent::__construct($a, $r, 0);
 }
예제 #12
0
 public function __construct($x = 0, $y = 0, $label = null, $width = 0, $heigth = 0)
 {
     parent::__construct($x, $y, $label);
     $this->setHeigth($heigth)->setWidth($width);
 }
예제 #13
0
파일: shapes.php 프로젝트: antrachtman/PHP
 function __construct($h, $w, $r, $s1, $s2, $s3)
 {
     //I'm counting on the user to make a triangle that makes sense. Probably a mistake.
     parent::__construct($h, $w, $r);
     //Triangles only have 3 sides.
     $this->numSides = 3;
     $this->sideLengths[0] = $s1;
     $this->sideLengths[1] = $s2;
     $this->sideLengths[2] = $s3;
     $this->cPerim();
     $this->cArea();
 }
 function __construct($x, $y, $radius)
 {
     parent::__construct($x, $y);
     $this->radius = $radius;
 }
예제 #15
0
 function __construct($radius)
 {
     parent::__construct($length = null, $width = null);
     $this->radius = $radius;
 }
예제 #16
0
파일: task5.php 프로젝트: Dre90/Web2
 function __construct()
 {
     parent::__construct();
 }