class Item implements ItemInterface, JsonSerializable (View source)

Properties

protected string $url
protected string $name
protected bool $isActive
protected bool $isActiveParent
protected Item[] $children

Methods

__construct(string $url, string $name, bool $isActive = false, $isActiveParent = false, $children = [])

Item constructor.

string
getUrl()

No description

string
getName()

No description

bool
isActive()

No description

array
getChildren()

No description

void
setChildren(array $children)

No description

addChild(Item $item)

No description

void
setUrl(string $url)

No description

void
setName(string $name)

No description

void
setIsActive(bool $isActive)

No description

bool
isActiveParent()

No description

void
setIsActiveParent(bool $isActiveParent)

No description

jsonSerialize()

No description

__clone()

No description

Details

__construct(string $url, string $name, bool $isActive = false, $isActiveParent = false, $children = [])

Item constructor.

Parameters

string $url
string $name
bool $isActive
$isActiveParent
$children

string getUrl()

No description

Return Value

string

string getName()

No description

Return Value

string

bool isActive()

No description

Return Value

bool

array getChildren()

No description

Return Value

array

void setChildren(array $children)

No description

Parameters

array $children

Return Value

void

addChild(Item $item)

No description

Parameters

Item $item

void setUrl(string $url)

No description

Parameters

string $url

Return Value

void

void setName(string $name)

No description

Parameters

string $name

Return Value

void

void setIsActive(bool $isActive)

No description

Parameters

bool $isActive

Return Value

void

bool isActiveParent()

No description

Return Value

bool

void setIsActiveParent(bool $isActiveParent)

No description

Parameters

bool $isActiveParent

Return Value

void

jsonSerialize()

No description

__clone()

No description