/** * {@inheritdoc} */ public function getName() { if (null === $this->option) { throw new \BadMethodCallException('The option have not been created yet so you cannot access proxy methods.'); } return $this->option->getName(); }