public function setOptionsParser(OptionsParser $parser) { $this->optionsParser = $parser; return $this; }