public function getMethod($routeId, $version, $method)
    {
        if ($version == '*' || empty($version)) {
            $version = $this->methodTable->getLatestVersion($routeId);
        } else {
            $version = $this->methodTable->getVersion($routeId, $version);
        }

        if (empty($version)) {
            throw new StatusCode\UnsupportedMediaTypeException('Version does not exist');
        }

        return $this->methodTable->getMethod($routeId, $version, $method);
    }
public function getMethod($routeId, $version, $method)
    {
        if ($version == '*' || empty($version)) {
            $version = $this->methodTable->getLatestVersion($routeId);
        } else {
            $version = $this->methodTable->getVersion($routeId, $version);
        }

        if (empty($version)) {
            throw new StatusCode\UnsupportedMediaTypeException('Version does not exist');
        }

        return $this->methodTable->getMethod($routeId, $version, $method);
    }
public function getMethod ( $ routeId , $ version , $ method ) { if ( $ version == '*' || empty ( $ version ) ) { $ version = $ this -> methodTable -> getLatestVersion ( $ routeId ) ; } else { $ version = $ this -> methodTable -> getVersion ( $ routeId , $ version ) ; } if ( empty ( $ version ) ) { throw new StatusCode \ UnsupportedMediaTypeException ( 'Version does not exist' ) ; } return $ this -> methodTable -> getMethod ( $ routeId , $ version , $ method ) ; }
Returns the method configuration for the provide route, version and
request method

@param integer $routeId
@param string $version
@param string $method
@return array
Returns the method configuration for the provide route version and request method