public function run($method, $action, $data) {
    $method = strtoupper($method);
    if (is_callable([$this, $method])) {
      return $this->$method($action, $data);
    }
    return $this->httpError(405, 'Method Not Allowed');
  }
public function run($method, $action, $data) {
    $method = strtoupper($method);
    if (is_callable([$this, $method])) {
      return $this->$method($action, $data);
    }
    return $this->httpError(405, 'Method Not Allowed');
  }
public function run ( $ method , $ action , $ data ) { $ method = strtoupper ( $ method ) ; if ( is_callable ( [ $ this , $ method ] ) ) { return $ this -> $ method ( $ action , $ data ) ; } return $ this -> httpError ( 405 , 'Method Not Allowed' ) ; }
Run the Nymph REST server process.

Note that on failure, an HTTP error status code will be sent, usually
along with a message body.

@param string $method The HTTP method.
@param string $action The Nymph action.
@param string $data The JSON encoded data.
@return bool True on success, false on failure.
Run the Nymph REST server process .