Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler Class Reference
+ Inheritance diagram for Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler:
+ Collaboration diagram for Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler:

Public Member Functions

 __construct (RemovePropertyStatement $useCase, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 
 run (... $args)
 
 runUseCase (string $propertyId, string $statementId)
 
 validate (Validator $restValidator)
 
 getParamSettings ()
 
 getBodyParamSettings ()
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse ()
 
 getUsername ()
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const STATEMENT_ID_PATH_PARAM = 'statement_id'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
const TAGS_PARAM_DEFAULT = []
 
const BOT_PARAM_DEFAULT = false
 
const COMMENT_PARAM_DEFAULT = null
 
RemovePropertyStatement $useCase
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::__construct ( RemovePropertyStatement $useCase,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ checkPreconditions()

Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::checkPreconditions ( )

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyParamSettings()

Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::getBodyParamSettings ( )

◆ getParamSettings()

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

◆ getUsername()

Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::getUsername ( )
private

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::newSuccessHttpResponse ( )
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::runUseCase ( string $propertyId,
string $statementId )

◆ validate()

Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::validate ( Validator $restValidator)

Member Data Documentation

◆ $middlewareHandler

MiddlewareHandler Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::$middlewareHandler
private

◆ $responseFactory

ResponseFactory Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::$responseFactory
private

◆ $useCase

RemovePropertyStatement Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::BOT_BODY_PARAM = 'bot'
private

◆ BOT_PARAM_DEFAULT

const Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::BOT_PARAM_DEFAULT = false
private

◆ COMMENT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::COMMENT_BODY_PARAM = 'comment'
private

◆ COMMENT_PARAM_DEFAULT

const Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::COMMENT_PARAM_DEFAULT = null
private

◆ PROPERTY_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::PROPERTY_ID_PATH_PARAM = 'property_id'
private

◆ STATEMENT_ID_PATH_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::STATEMENT_ID_PATH_PARAM = 'statement_id'
private

◆ TAGS_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::TAGS_BODY_PARAM = 'tags'
private

◆ TAGS_PARAM_DEFAULT

const Wikibase\Repo\RestApi\RouteHandlers\RemovePropertyStatementRouteHandler::TAGS_PARAM_DEFAULT = []
private

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