SurveyAggregateService
in package
Survey Aggregate Service
Service class for updating survey settings.
Dependencies are injected to enable mocking.
Table of Contents
Properties
- $generalSettings : GeneralSettings
- $languageSettings : LanguageSettings
- $proxyExpressionManager : ProxyExpressionManager
- $restMode : mixed
- $templateConfiguration : TemplateConfiguration
- $urlParams : UrlParams
Methods
- __construct() : mixed
- getRestMode() : mixed
- setRestMode() : mixed
- Set REST Mode
- update() : array<string|int, mixed>
- Update
Properties
$generalSettings
private
GeneralSettings
$generalSettings
$languageSettings
private
LanguageSettings
$languageSettings
$proxyExpressionManager
private
ProxyExpressionManager
$proxyExpressionManager
$restMode
private
mixed
$restMode
= false
$templateConfiguration
private
TemplateConfiguration
$templateConfiguration
$urlParams
private
UrlParams
$urlParams
Methods
__construct()
public
__construct(LanguageSettings $languageSettings, GeneralSettings $generalSettings, UrlParams $urlParams, ProxyExpressionManager $proxyExpressionManager, TemplateConfiguration $templateConfiguration) : mixed
Parameters
- $languageSettings : LanguageSettings
- $generalSettings : GeneralSettings
- $urlParams : UrlParams
- $proxyExpressionManager : ProxyExpressionManager
- $templateConfiguration : TemplateConfiguration
getRestMode()
public
getRestMode() : mixed
setRestMode()
Set REST Mode
public
setRestMode(bool $restMode) : mixed
In rest mode we have different expecations about data formats. For example datetime objects inputs/output as UTC JSON format Y-m-d\TH:i:s.000\Z.
Parameters
- $restMode : bool
update()
Update
public
update(int $surveyId, array<string|int, mixed> $input) : array<string|int, mixed>
Parameters
- $surveyId : int
- $input : array<string|int, mixed>