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

Public Member Functions

 __construct (CreateItem $useCase, ItemPartsSerializer $serializer, ResponseFactory $responseFactory, MiddlewareHandler $middlewareHandler)
 
 run (... $args)
 
 runUseCase ()
 
 getBodyValidator ( $contentType)
 

Static Public Member Functions

static factory ()
 

Public Attributes

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

Private Member Functions

 newSuccessHttpResponse (CreateItemResponse $useCaseResponse)
 
 getUsername ()
 

Private Attributes

CreateItem $useCase
 
ItemPartsSerializer $itemSerializer
 
ResponseFactory $responseFactory
 
MiddlewareHandler $middlewareHandler
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::__construct ( CreateItem $useCase,
ItemPartsSerializer $serializer,
ResponseFactory $responseFactory,
MiddlewareHandler $middlewareHandler )

Member Function Documentation

◆ factory()

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

◆ getBodyValidator()

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

◆ getUsername()

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

◆ newSuccessHttpResponse()

Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::newSuccessHttpResponse ( CreateItemResponse $useCaseResponse)
private

◆ run()

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

◆ runUseCase()

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

Member Data Documentation

◆ $itemSerializer

ItemPartsSerializer Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::$itemSerializer
private

◆ $middlewareHandler

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

◆ $responseFactory

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

◆ $useCase

CreateItem Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::$useCase
private

◆ BOT_BODY_PARAM

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

◆ COMMENT_BODY_PARAM

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

◆ ITEM_BODY_PARAM

const Wikibase\Repo\RestApi\RouteHandlers\CreateItemRouteHandler::ITEM_BODY_PARAM = 'item'

◆ TAGS_BODY_PARAM

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

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