PatcherSurveyResponses
extends Patcher
in package
Table of Contents
Properties
- $surveyResponse : SurveyResponse
- $handlers : array<string|int, mixed>
- $opHandlers : array<string|int, OpHandlerInterface>
Methods
- __construct() : mixed
- addOpHandler() : void
- Add operation handler
- applyPatch() : array<string|int, mixed>
- Apply patch
- handleOp() : array<string|int, mixed>
- Apply operation
Properties
$surveyResponse
protected
SurveyResponse
$surveyResponse
$handlers
private
array<string|int, mixed>
$handlers
= [\LimeSurvey\Libraries\Api\Command\V1\SurveyResponses\patch\OpHandlerResponsesDelete::class, \LimeSurvey\Libraries\Api\Command\V1\SurveyResponses\patch\OpHandlerResponsesUpdate::class, \LimeSurvey\Libraries\Api\Command\V1\SurveyResponses\patch\OpHandlerResponsesFileDelete::class]
$opHandlers
private
array<string|int, OpHandlerInterface>
$opHandlers
= []
Operation handlers to apply operations to entities.
Methods
__construct()
public
__construct(ContainerInterface $diContainer, SurveyResponse $surveyResponse) : mixed
Parameters
- $diContainer : ContainerInterface
- $surveyResponse : SurveyResponse
Tags
addOpHandler()
Add operation handler
public
addOpHandler(OpHandlerInterface $opHandler) : void
Parameters
- $opHandler : OpHandlerInterface
applyPatch()
Apply patch
public
applyPatch(mixed|null $patch[, array<string|int, mixed>|null $context = [] ]) : array<string|int, mixed>
Parameters
- $patch : mixed|null
- $context : array<string|int, mixed>|null = []
Tags
Return values
array<string|int, mixed>handleOp()
Apply operation
public
handleOp(OpInterface $op) : array<string|int, mixed>
Parameters
- $op : OpInterface