Documentation

MenuItem

Tags
ORM\Entity
ORM\Table

(name="menu_item")

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

(type="datetime", nullable=false)

$id

protected int $id
Tags
ORM\Id
ORM\Column

(type="integer")

ORM\GeneratedValue

$menu

protected Menu $menu
Tags
ORM\ManyToOne

(targetEntity="Menu", inversedBy="items")

ORM\JoinColumn

(name="menu_id", referencedColumnName="id")

$state

protected bool $state
Tags
ORM\Column

(type="boolean")

$target

protected string $target
Tags
ORM\Column

(type="string", length=512)

$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 = "" ][, 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
Return values
self

Search results