/** * \param $error a specific error to simulate * \return the current instance */ public static function Errors($error = null) { $request = new PagedRequest(new URL(), 'error', 'errors'); if ($error !== null) { $request->ID($error); } return $request; }
/** * \param $id either a post ID or an array of post IDs * \return a PagedRequest object */ public function Revisions($id) { $request = new PagedRequest($this->api_domain, 'revision', 'revisions'); $request->ID($id); return $request; }