\FACTFinder\DataItem

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()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$label
$url
$selected
N/A

Properties

$label

$label : string

Type

string

$url

$url : string

Type

string

$selected

$selected : boolean

Type

boolean

Methods

__construct()

__construct(string  $label, string  $url, boolean  $isSelected = false) 

Parameters

string $label
string $url
boolean $isSelected

getLabel()

getLabel() : string

Returns

string

getUrl()

getUrl() : string

Returns

string

setUrl()

setUrl(  $url) : string

Parameters

$url

Returns

string

isSelected()

isSelected() : boolean

Returns

boolean