예제 #1
0
 public function __construct($name)
 {
     parent::__construct($name);
     // randomly put this ship under repair
     $this->underRepair = mt_rand(1, 100) < 30;
 }
예제 #2
0
파일: Ship.php 프로젝트: sjhuda/knp-oop
 public function __construct($name)
 {
     parent::__construct($name);
     $this->underRepair = mt_rand(1, 100) < 30;
 }