public function setTagFile($tagFile = null) { if ($tagFile !== null) { $tagFile = (string) $tagFile; } else { $tagFile = $this->getDirectory() . self::defaultTagFile; } $this->tagFile = $tagFile; return $this; }