/** * {@inheritdoc} */ public function getAllowedGrantTypes() { if ($this->getMetadata()) { return $this->getMetadata()->getGrantTypes(); } return parent::getAllowedGrantTypes(); }