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

Public Member Functions

 __construct (CreateProperty $useCase, PropertyPartsSerializer $serializer, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase ()
 
 validate (Validator $restValidator)
 
 getBodyParamSettings ()
 

Static Public Member Functions

static factory ()
 

Private Member Functions

 newSuccessHttpResponse (CreatePropertyResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

const PROPERTY_BODY_PARAM = 'property'
 
const TAGS_BODY_PARAM = 'tags'
 
const BOT_BODY_PARAM = 'bot'
 
const COMMENT_BODY_PARAM = 'comment'
 
CreateProperty $useCase
 
PropertyPartsSerializer $propertySerializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\CreatePropertyRouteHandler::__construct ( CreateProperty $useCase,
PropertyPartsSerializer $serializer,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ factory()

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

◆ getBodyParamSettings()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\CreatePropertyRouteHandler::newSuccessHttpResponse ( CreatePropertyResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

Wikibase\Repo\RestApi\RouteHandlers\CreatePropertyRouteHandler::runUseCase ( )

◆ validate()

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

Member Data Documentation

◆ $middlewareHandler

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

◆ $propertySerializer

PropertyPartsSerializer Wikibase\Repo\RestApi\RouteHandlers\CreatePropertyRouteHandler::$propertySerializer
private

◆ $responseFactory

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

◆ $useCase

CreateProperty Wikibase\Repo\RestApi\RouteHandlers\CreatePropertyRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ PROPERTY_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\CreatePropertyRouteHandler::PROPERTY_BODY_PARAM = 'property'
private

◆ TAGS_BODY_PARAM

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

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