private function setFormat($format) { switch ($format) { case 'yml': case 'xml': case 'php': case 'annotation': $this->format = $format; break; default: $this->format = 'yml'; break; } }