MenuItem
in package
Class MenuItem
Table of Contents
- $id : string
- $isActive : bool
- $title : string
- $url : string
- __construct() : mixed
- MenuItem constructor.
- id() : string
- isActive() : bool
- toArray() : array<string|int, mixed>
Properties
$id
private
string
$id
$isActive
private
bool
$isActive
$title
private
string
$title
$url
private
string
$url
Methods
__construct()
MenuItem constructor.
public
__construct(string $title, string $url, bool $isActive) : mixed
Parameters
- $title : string
- $url : string
- $isActive : bool
Return values
mixed —id()
public
id() : string
Return values
string —isActive()
public
isActive() : bool
Return values
bool —toArray()
public
toArray() : array<string|int, mixed>