public function addParsedObject($object) { if ($object instanceof THotSpot) { $this->getHotSpots()->add($object); } }