示例#1
0
 public function __construct($a, $b, $com, $height, $tp)
 {
     $this->company = $com;
     $this->height_meters = $height;
     $this->ticketPrice = $tp;
     parent::__construct($a, $b);
 }
示例#2
0
 public function __construct($v, $spv, $f, $c)
 {
     $this->vagons = $v;
     $this->seats_per_vagon = $spv;
     $this->seats = $v * $spv;
     parent::__construct($f, $c);
 }
示例#3
0
 public function __construct($a, $b, $s, $d, $dest)
 {
     $this->destination = $dest;
     $this->seats = $s;
     $this->distance = $d;
     parent::__construct($a, $b);
 }
示例#4
0
 public function __construct($a, $b, $s, $d, $c, $chance)
 {
     $this->seats = $s;
     $this->distance = $d;
     $this->company = $c;
     $this->chance = $chance;
     parent::__construct($a, $b);
 }
示例#5
0
 public function __construct($cc, $hp, $noOfDoors, $color, $brand)
 {
     echo "<br/>Hi from car constructor";
     parent::__construct('Car', $cc, $hp);
     $this->noOfDoors = $noOfDoors;
     $this->color = $color;
     $this->brand = $brand;
 }
示例#6
0
 public function __construct($doors, $color, $tires, $make, $model)
 {
     parent::__construct($doors, $color, $tires);
     $this->make = $make;
     $this->model = $model;
     // $this->tires = $tires;
     // $this->color = $color;
     // $this->doors = $doors;
 }
示例#7
0
 public function __construct(Workshop $workShop1, Workshop $workShop2)
 {
     parent::__construct($workShop1, $workShop2);
 }
示例#8
0
 function __construct()
 {
     parent::__construct(false, 100, 5);
 }
示例#9
0
 public function __construct($a, $b, $s, $max)
 {
     $this->maximumPpl = $max;
     $this->seats = $s;
     parent::__construct($a, $b);
 }
示例#10
0
 public function __construct($a, $b, $s, $pas)
 {
     $this->seats = $s;
     $this->passanger = $pas;
     parent::__construct($a, $b);
 }
示例#11
0
 function __construct()
 {
     parent::__construct(false, 25, 2);
 }
 public function construct($sp = 100, $pe = 1)
 {
     parent::__construct();
     $this->people = $pe;
 }
示例#13
0
 function __construct($am, $h, $a, $b)
 {
     $this->ammo = $am;
     $this->hp = $h;
     parent::__construct($a, $b);
 }
示例#14
0
 public function __construct($a, $b, $bb)
 {
     $this->boxes = $bb;
     parent::__construct($a, $b);
 }
示例#15
0
 public function __construct($a, $b, $l)
 {
     $this->load = $l;
     parent::__construct($a, $b);
 }
示例#16
0
 function __construct()
 {
     parent::__construct(true, 900, 650);
 }
 public function construct()
 {
     parent::__construct();
     echo 'Hello';
 }
示例#18
0
 public function __construct()
 {
     parent::__construct(2);
 }
示例#19
0
 public function __construct($stew, $a, $b)
 {
     $this->stewardess = $stew;
     parent::__construct($a, $b);
 }
示例#20
0
 public function __construct($ml, $a, $b)
 {
     $this->maxLoad = $ml;
     parent::__construct($a, $b);
 }
示例#21
0
 public function __construct($a, $b, $s)
 {
     $this->seats = $s;
     parent::__construct($a, $b);
 }
示例#22
0
 function __construct($speed, $maxPassengers)
 {
     parent::__construct(false, $speed, $maxPassengers);
 }
示例#23
0
 public function __construct($s, $pass, $a, $b)
 {
     $this->seats = $s;
     $this->passengers = $pass;
     parent::__construct($a, $b);
 }
示例#24
0
 function __construct()
 {
     parent::__construct("car",4);
     $this->gas = 100;
 }