public function setAnalyzer(analyzer $analyzer = null) { $this->analyzer = $analyzer ?: new analyzer(); return $this; }