src/AuthorizationServer.php
public function getGrantType($grantType)
    {
        if (isset($this->grantTypes[$grantType])) {
            return $this->grantTypes[$grantType];
        }

        throw new Exception\InvalidGrantException($grantType);
    }
public function getGrantType($grantType)
    {
        if (isset($this->grantTypes[$grantType])) {
            return $this->grantTypes[$grantType];
        }

        throw new Exception\InvalidGrantException($grantType);
    }
public function getGrantType ( $ grantType ) { if ( isset ( $ this -> grantTypes [ $ grantType ] ) ) { return $ this -> grantTypes [ $ grantType ] ; } throw new Exception \ InvalidGrantException ( $ grantType ) ; }
Return a grant type class

@param string $grantType The grant type identifier

@return Grant\GrantTypeInterface

@throws
Return a grant type class