Documentation

Menu

Tags
ORM\Entity
ORM\Table

(name="menu")

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
ORM\Column

(type="datetime", nullable=false)

$id

protected int $id
Tags
ORM\Id
ORM\Column

(type="integer")

ORM\GeneratedValue

$items

protected PersistentCollection<int, MenuItem> $items
Tags
ORM\OneToMany

(targetEntity="MenuItem", mappedBy="menu")

$state

protected bool $state
Tags
ORM\Column

(type="boolean")

$title

protected string $title
Tags
ORM\Column

(type="string", length=512)

$updated

protected DateTime $updated
Tags
ORM\Column

(type="datetime", nullable=false)

ORM\Version

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
Return values
self

Search results