|
| getRevisionId () |
| Guaranteed to return a revision ID if the request headers match the latest revision, e.g.
|
|
| getStatusCode () |
| Returns the status code if the request headers match the latest revision, e.g.
|
|
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Repo\RestApi\RouteHandlers\Middleware\RequestPreconditionCheckResult::__construct |
( |
?int | $revisionId, |
|
|
?int | $statusCode ) |
|
private |
◆ getRevisionId()
Wikibase\Repo\RestApi\RouteHandlers\Middleware\RequestPreconditionCheckResult::getRevisionId |
( |
| ) |
|
Guaranteed to return a revision ID if the request headers match the latest revision, e.g.
when sending an If-None-Match header containing the latest revision ID. Returns null if there was no match.
◆ getStatusCode()
Wikibase\Repo\RestApi\RouteHandlers\Middleware\RequestPreconditionCheckResult::getStatusCode |
( |
| ) |
|
Returns the status code if the request headers match the latest revision, e.g.
304 when sending an If-None-Match header containing the latest revision ID. Returns null if there was no match.
◆ newConditionMetResult()
static Wikibase\Repo\RestApi\RouteHandlers\Middleware\RequestPreconditionCheckResult::newConditionMetResult |
( |
int | $revisionId, |
|
|
int | $statusCode ) |
|
static |
◆ newConditionUnmetResult()
static Wikibase\Repo\RestApi\RouteHandlers\Middleware\RequestPreconditionCheckResult::newConditionUnmetResult |
( |
| ) |
|
|
static |
◆ $revisionId
int Wikibase\Repo\RestApi\RouteHandlers\Middleware\RequestPreconditionCheckResult::$revisionId |
|
private |
◆ $statusCode
int Wikibase\Repo\RestApi\RouteHandlers\Middleware\RequestPreconditionCheckResult::$statusCode |
|
private |
The documentation for this class was generated from the following file: