Menu
Tags
Table of Contents
- $created : DateTime
- $id : int
- $items : PersistentCollection<int, MenuItem>
- $state : bool
- $title : string
- $updated : DateTime
- __construct() : mixed
- getCreated() : DateTime
- Returns created date
- getId() : int
- Return ID
- getItems() : PersistentCollection<int, MenuItem>
- Returns menu items associated to menu entity
- getState() : bool
- Returns state
- getTitle() : string
- Returns title
- getUpdated() : DateTime
- Returns updated date
- setCreated() : self
- Sets created date
- setState() : self
- Sets state
- setTitle() : self
- Sets title
- setUpdated() : self
- Sets updated date
Properties
$created
protected
DateTime
$created
Tags
$id
protected
int
$id
Tags
$items
protected
PersistentCollection<int, MenuItem>
$items
Tags
$state
protected
bool
$state
Tags
$title
protected
string
$title
Tags
$updated
protected
DateTime
$updated
Tags
Methods
__construct()
public
__construct([string $title = "" ][, bool $state = true ]) : mixed
Parameters
- $title : 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 —getItems()
Returns menu items associated to menu entity
public
getItems() : PersistentCollection<int, MenuItem>
Return values
PersistentCollection<int, MenuItem> —getState()
Returns state
public
getState() : bool
Return values
bool —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 —setTitle()
Sets title
public
setTitle(string $title) : self
Parameters
- $title : string
Return values
self —setUpdated()
Sets updated date
public
setUpdated() : self