public function addKeyword(Keyword $keyword) { if (!$this->hasKeyword($keyword)) { $this->keywords[] = $keyword; } }