public function getHttpMethod()
    {
        switch ($this->method) {
            case Method::LINK:
                return Method::POST;
            case Method::UNLINK:
                return Method::DELETE;

            default:
                return $this->method;
        }
    }
public function getHttpMethod()
    {
        switch ($this->method) {
            case Method::LINK:
                return Method::POST;
            case Method::UNLINK:
                return Method::DELETE;

            default:
                return $this->method;
        }
    }
public function getHttpMethod ( ) { switch ( $ this -> method ) { case Method :: LINK : return Method :: POST ; case Method :: UNLINK : return Method :: DELETE ; default : return $ this -> method ; } }
Return a HTTP safe method.
@return string
Return a HTTP safe method .