\FACTFinder\DataAdvisorAnswer

Represents any kind of selectable item on the page. This includes links and some form elements. This class really just groups a label, a URL and a boolean indicating whether the item is already selected. Subclasses may add further fields or logic to implement different kinds of items.

Summary

Methods
Properties
Constants
__construct()
getLabel()
getUrl()
setUrl()
isSelected()
getText()
addFollowUpQuestions()
hasFollowUpQuestions()
getFollowUpQuestions()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$label
$url
$selected
$followUpQuestions
N/A

Properties

$label

$label : string

Type

string

$url

$url : string

Type

string

$selected

$selected : boolean

Type

boolean

Methods

__construct()

__construct(string  $text, string  $url, array<mixed,\FACTFinder\Data\AdvisorQuestion>  $followUpQuestions = array()) 

Parameters

string $text

The answer text to be displayed.

string $url
array<mixed,\FACTFinder\Data\AdvisorQuestion> $followUpQuestions

Optional array of questions that will follow this answer.

getLabel()

getLabel() : string

Returns

string

getUrl()

getUrl() : string

Returns

string

setUrl()

setUrl(  $url) : string

Parameters

$url

Returns

string

isSelected()

isSelected() : boolean

Returns

boolean

getText()

getText() 

This is just an alias.

addFollowUpQuestions()

addFollowUpQuestions(array<mixed,\FACTFinder\Data\AdvisorQuestion>  $followUpQuestions) 

Parameters

array<mixed,\FACTFinder\Data\AdvisorQuestion> $followUpQuestions

hasFollowUpQuestions()

hasFollowUpQuestions() : boolean

Returns

boolean —

True, if at least one follow-up question exists.