public function __construct() { parent::__construct(); $this->family = new \BishBashBoshBundle\Model\DogFamilyModel(); $parts = explode('\\', __CLASS__); $this->name = end($parts); }
public function attack(\BishBashBoshBundle\Model\Animals\AbstractAnimal $animal) { $animal->reduceHp($this->getDamagePoints()); return $animal; }