public function setAnnotation(Annotation $annotation) { $this->annotations[] = $annotation; }
/** * Set entry. * * @param Entry $entry * * @return Annotation */ public function setEntry($entry) { $this->entry = $entry; $entry->setAnnotation($this); return $this; }