MenuItem
Tags
Table of Contents
- $created : DateTime
- $id : int
- $menu : Menu
- $state : bool
- $target : string
- $title : string
- $updated : DateTime
- __construct() : mixed
- getCreated() : DateTime
- Returns created date
- getId() : int
- Return ID
- getState() : bool
- Returns state
- getTarget() : string
- Returns target
- getTitle() : string
- Returns title
- getUpdated() : DateTime
- Returns updated date
- setCreated() : self
- Sets created date
- setState() : self
- Sets state
- setTarget() : self
- Sets target
- setTitle() : self
- Sets title
- setUpdated() : self
- Sets updated date
Properties
$created
protected
DateTime
$created
Tags
$id
protected
int
$id
Tags
$menu
protected
Menu
$menu
Tags
$state
protected
bool
$state
Tags
$target
protected
string
$target
Tags
$title
protected
string
$title
Tags
$updated
protected
DateTime
$updated
Tags
Methods
__construct()
public
__construct([string $title = "" ][, string $target = "" ][, bool $state = true ]) : mixed
Parameters
- $title : string = ""
- $target : string = ""
- $state : bool = true
Return values
mixed —getCreated()
Returns created date
public
getCreated() : DateTime
Return values
DateTime —getId()
Return ID
public
getId() : int
Return values
int —getState()
Returns state
public
getState() : bool
Return values
bool —getTarget()
Returns target
public
getTarget() : string
Return values
string —getTitle()
Returns title
public
getTitle() : string
Return values
string —getUpdated()
Returns updated date
public
getUpdated() : DateTime
Return values
DateTime —setCreated()
Sets created date
public
setCreated(DateTime $created) : self
Parameters
- $created : DateTime
Return values
self —setState()
Sets state
public
setState(bool $state) : self
Parameters
- $state : bool
Return values
self —setTarget()
Sets target
public
setTarget(string $target) : self
Parameters
- $target : string
Return values
self —setTitle()
Sets title
public
setTitle(string $title) : self
Parameters
- $title : string
Return values
self —setUpdated()
Sets updated date
public
setUpdated() : self