PhalconRest\Api\ApiEndpoint::getIdentifier PHP Method

getIdentifier() public method

public getIdentifier ( ) : string
return string Unique identifier for this endpoint (returns a combination of the HTTP method and the path)
    public function getIdentifier()
    {
        return $this->getHttpMethod() . ' ' . $this->getPath();
    }

Usage Example

 protected function createRouteName(ApiEndpoint $endpoint)
 {
     return serialize(['collection' => $this->getIdentifier(), 'endpoint' => $endpoint->getIdentifier()]);
 }