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

Public Member Functions

 __construct (PatchStatementValidator $useCaseValidator, PatchedStatementValidator $patchedStatementValidator, PatchJson $jsonPatcher, StatementSerializer $statementSerializer, AssertStatementSubjectExists $assertStatementSubjectExists, StatementRetriever $statementRetriever, StatementUpdater $statementUpdater, AssertUserIsAuthorized $assertUserIsAuthorized)
 
 execute (PatchStatementRequest $request)
 

Private Attributes

PatchStatementValidator $useCaseValidator
 
PatchedStatementValidator $patchedStatementValidator
 
PatchJson $jsonPatcher
 
StatementSerializer $statementSerializer
 
AssertStatementSubjectExists $assertStatementSubjectExists
 
StatementRetriever $statementRetriever
 
StatementUpdater $statementUpdater
 
AssertUserIsAuthorized $assertUserIsAuthorized
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::__construct ( PatchStatementValidator $useCaseValidator,
PatchedStatementValidator $patchedStatementValidator,
PatchJson $jsonPatcher,
StatementSerializer $statementSerializer,
AssertStatementSubjectExists $assertStatementSubjectExists,
StatementRetriever $statementRetriever,
StatementUpdater $statementUpdater,
AssertUserIsAuthorized $assertUserIsAuthorized )

Member Function Documentation

◆ execute()

Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::execute ( PatchStatementRequest $request)
Exceptions
ItemRedirect
UseCaseError

Member Data Documentation

◆ $assertStatementSubjectExists

AssertStatementSubjectExists Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::$assertStatementSubjectExists
private

◆ $assertUserIsAuthorized

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

◆ $jsonPatcher

PatchJson Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::$jsonPatcher
private

◆ $patchedStatementValidator

PatchedStatementValidator Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::$patchedStatementValidator
private

◆ $statementRetriever

StatementRetriever Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::$statementRetriever
private

◆ $statementSerializer

StatementSerializer Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::$statementSerializer
private

◆ $statementUpdater

StatementUpdater Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::$statementUpdater
private

◆ $useCaseValidator

PatchStatementValidator Wikibase\Repo\RestApi\Application\UseCases\PatchStatement\PatchStatement::$useCaseValidator
private

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