Item
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
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.
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