Wikibase
MediaWiki Wikibase extension
Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler:
+ Collaboration diagram for Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler:

Public Member Functions

 __construct (GetItemStatement $getItemStatement, StatementJsonPresenter $successPresenter, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase (string $statementId)
 
 getParamSettings ()
 
 needsWriteAccess ()
 

Static Public Member Functions

static factory ()
 

Public Attributes

const ID_PATH_PARAM = 'statement_id'
 

Private Member Functions

 newSuccessHttpResponse (GetItemStatementSuccessResponse $useCaseResponse)
 
 setEtagFromRevId (Response $httpResponse, int $revId)
 

Private Attributes

 $getItemStatement
 
 $successPresenter
 
 $responseFactory
 
 $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::__construct ( GetItemStatement  $getItemStatement,
StatementJsonPresenter  $successPresenter,
ResponseFactory  $responseFactory,
MiddlewareHandler  $middlewareHandler 
)

Member Function Documentation

◆ factory()

static Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::factory ( )
static

◆ getParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::getParamSettings ( )

◆ needsWriteAccess()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::needsWriteAccess ( )

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::newSuccessHttpResponse ( GetItemStatementSuccessResponse  $useCaseResponse)
private

◆ run()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::run (   $args)
Parameters
mixed...$args

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::runUseCase ( string  $statementId)

◆ setEtagFromRevId()

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::setEtagFromRevId ( Response  $httpResponse,
int  $revId 
)
private

Member Data Documentation

◆ $getItemStatement

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::$getItemStatement
private

◆ $middlewareHandler

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::$middlewareHandler
private

◆ $responseFactory

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::$responseFactory
private

◆ $successPresenter

Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::$successPresenter
private

◆ ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\GetStatementRouteHandler::ID_PATH_PARAM = 'statement_id'

The documentation for this class was generated from the following file: