public function addAnnotation($annotation, $value) { if ($this->annotations === null) { $this->getAnnotations(); } $this->annotations[$annotation][] = $value; return $this; }