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