示例#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;
 }