Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\RestApi\Application\UseCases\CreateItem\CreateItem Class Reference
+ Collaboration diagram for Wikibase\Repo\RestApi\Application\UseCases\CreateItem\CreateItem:

Public Member Functions

 __construct (CreateItemValidator $validator, ItemCreator $itemCreator, AssertUserIsAuthorized $assertUserIsAuthorized)
 
 execute (CreateItemRequest $request)
 

Private Attributes

CreateItemValidator $validator
 
ItemCreator $itemCreator
 
AssertUserIsAuthorized $assertUserIsAuthorized
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\UseCases\CreateItem\CreateItem::__construct ( CreateItemValidator $validator,
ItemCreator $itemCreator,
AssertUserIsAuthorized $assertUserIsAuthorized )

Member Function Documentation

◆ execute()

Wikibase\Repo\RestApi\Application\UseCases\CreateItem\CreateItem::execute ( CreateItemRequest $request)
Exceptions
UseCaseError

Member Data Documentation

◆ $assertUserIsAuthorized

AssertUserIsAuthorized Wikibase\Repo\RestApi\Application\UseCases\CreateItem\CreateItem::$assertUserIsAuthorized
private

◆ $itemCreator

ItemCreator Wikibase\Repo\RestApi\Application\UseCases\CreateItem\CreateItem::$itemCreator
private

◆ $validator

CreateItemValidator Wikibase\Repo\RestApi\Application\UseCases\CreateItem\CreateItem::$validator
private

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