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

Public Member Functions

 __construct (MiddlewareHandler $middlewareHandler, PatchPropertyDescriptions $useCase, DescriptionsSerializer $serializer, ResponseFactory $responseFactory)
 
 run (... $args)
 
 runUseCase (string $propertyId)
 
 getParamSettings ()
 
 getBodyValidator ( $contentType)
 
 checkPreconditions ()
 Preconditions are checked via PreconditionMiddleware.
 

Static Public Member Functions

static factory ()
 

Public Attributes

const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 

Private Member Functions

 newSuccessHttpResponse (PatchPropertyDescriptionsResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const PROPERTY_ID_PATH_PARAM = 'property_id'
 
const PATCH_BODY_PARAM = 'patch'
 
MiddlewareHandler $middlewareHandler
 
PatchPropertyDescriptions $useCase
 
DescriptionsSerializer $serializer
 
ResponseFactory $responseFactory
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::__construct ( MiddlewareHandler $middlewareHandler,
PatchPropertyDescriptions $useCase,
DescriptionsSerializer $serializer,
ResponseFactory $responseFactory )

Member Function Documentation

◆ checkPreconditions()

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

Preconditions are checked via PreconditionMiddleware.

◆ factory()

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

◆ getBodyValidator()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::getBodyValidator ( $contentType)

◆ getParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::newSuccessHttpResponse ( PatchPropertyDescriptionsResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::runUseCase ( string $propertyId)

Member Data Documentation

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $serializer

DescriptionsSerializer Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::$serializer
private

◆ $useCase

PatchPropertyDescriptions Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::BOT_BODY_PARAM = 'bot'

◆ COMMENT_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::COMMENT_BODY_PARAM = 'comment'

◆ PATCH_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::PATCH_BODY_PARAM = 'patch'
private

◆ PROPERTY_ID_PATH_PARAM

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

◆ TAGS_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\PatchPropertyDescriptionsRouteHandler::TAGS_BODY_PARAM = 'tags'

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