/** * Returns the options. * * @return Option[] */ public function getOptions() { if ($this->options === null && $this->_repository !== null) { $this->_repository->injectOptions($this); } return $this->options ?: array(); }