*/ protected $annotations = []; public function addAnnotation(string $encoding, string $annotation): self { $this->annotations[$encoding] = $annotation; return $this; } public function getAnnotation(string $encoding): ?string { return $this->annotations[$encoding] ?? null; } /** * @return array */ public function getAnnotations(): array { return $this->annotations; } }