示例#1
0
 public function addAnimal(Animal $animal)
 {
     $this->critters[] = $animal;
     $animal->setWorld($this);
 }