SurveyParserInterface
in
Table of Contents
Methods
- parseJson() : VariableSetInterface
- parseSurveyStructure() : VariableSetInterface
- setDefaultParser() : void
- Sets the default parser
- setParser() : void
- Sets a parser for a question type. Will override the previously configured or default parser.
Methods
parseJson()
public
parseJson(string $json) : VariableSetInterface
Parameters
- $json : string
Return values
VariableSetInterfaceparseSurveyStructure()
public
parseSurveyStructure(array<string, mixed> $structure) : VariableSetInterface
Parameters
- $structure : array<string, mixed>
Return values
VariableSetInterfacesetDefaultParser()
Sets the default parser
public
setDefaultParser(ElementParserInterface $parser) : void
Parameters
- $parser : ElementParserInterface
setParser()
Sets a parser for a question type. Will override the previously configured or default parser.
public
setParser(string $type, ElementParserInterface $parser) : void
Parameters
- $type : string
- $parser : ElementParserInterface