PhalconRest\Api\ApiEndpoint::getIdentifier PHP Méthode

getIdentifier() public méthode

public getIdentifier ( ) : string
Résultat 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()]);
 }