hits = new ArrayCollection(); $this->level = $level; $this->emotion = $emotion; $this->score = $score; $this->time = $time; $this->position = $position; } public function addHit(Hit $hit){ $this->hits->add($hit); } }