PatcherSurvey
extends Patcher
in package
Table of Contents
Properties
- $surveyDetailService : SurveyDetailService
- $surveyResponse : SurveyResponse
- $opHandlers : array<string|int, OpHandlerInterface>
Methods
- __construct() : mixed
- Constructor
- addOpHandler() : void
- Add operation handler
- applyPatch() : array<string|int, mixed>
- Apply patch
- handleOp() : array<string|int, mixed>
- Apply operation
Properties
$surveyDetailService
protected
SurveyDetailService
$surveyDetailService
$surveyResponse
protected
SurveyResponse
$surveyResponse
$opHandlers
private
array<string|int, OpHandlerInterface>
$opHandlers
= []
Operation handlers to apply operations to entities.
Methods
__construct()
Constructor
public
__construct(ContainerInterface $diContainer, SurveyResponse $surveyResponse, SurveyDetailService $surveyDetailService) : mixed
Parameters
- $diContainer : ContainerInterface
- $surveyResponse : SurveyResponse
- $surveyDetailService : SurveyDetailService
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