Legend of the Green Dragon

Motd
in package

Motd.

Tags
ORM\Table

(name="motd")

ORM\Entity

(repositoryClass="Lotgd\Core\Repository\MotdRepository")

Table of Contents

$motdauthor  : int|null
$motdbody  : string|null
$motddate  : DateTimeInterface|null
$motditem  : int|null
$motdtitle  : string|null
$motdtype  : bool|null
__construct()  : mixed
getMotdauthor()  : int
Get the value of Motdauthor.
getMotdbody()  : string
Get the value of Motdbody.
getMotddate()  : DateTime|DateTimeImmutable
Get the value of Motddate.
getMotditem()  : int|null
Get the value of Motditem.
getMotdtitle()  : string
Get the value of Motdtitle.
getMotdtype()  : bool
Get the value of Motdtype.
setMotdauthor()  : self
Set the value of Motdauthor.
setMotdbody()  : self
Set the value of Motdbody.
setMotddate()  : self
Set the value of Motddate.
setMotditem()  : self
Set the value of Motditem.
setMotdtitle()  : self
Set the value of Motdtitle.
setMotdtype()  : self
Set the value of Motdtype.

Properties

$motdauthor

private int|null $motdauthor = 0
Tags
ORM\Column

(name="motdauthor", type="integer", options={"unsigned"=true, "default"="0"})

ORM\Column

(name="motdauthor", type="integer", nullable=false, options={"unsigned": true, "default": "0"})

Assert\DivisibleBy

(1)

$motdbody

private string|null $motdbody = ''
Tags
ORM\Column

(name="motdbody", type="text", length=65535)

Filter

("StripTags")

Filter

("StringTrim")

Assert\NotNull
Assert\Length

( min=1, max=65535 )

$motddate

private DateTimeInterface|null $motddate = null
Tags
ORM\Column

(name="motddate", type="datetime", nullable=true, options={"default": "0000-00-00 00:00:00"})

$motditem

private int|null $motditem = null
Tags
ORM\Column

(name="motditem", type="integer", options={"unsigned"=true})

ORM\Id
ORM\GeneratedValue

(strategy="IDENTITY")

$motdtitle

private string|null $motdtitle = ''
Tags
ORM\Column

(name="motdtitle", type="string", length=200, nullable=true)

Filter

("StripTags")

Assert\NotNull
Assert\Length

( min=1, max=200 )

$motdtype

private bool|null $motdtype = false
Tags
ORM\Column

(name="motdtype", type="boolean", options={"default"="0"})

Methods

__construct()

public __construct() : mixed
Return values
mixed

getMotdauthor()

Get the value of Motdauthor.

public getMotdauthor() : int
Return values
int

getMotdbody()

Get the value of Motdbody.

public getMotdbody() : string
Return values
string

getMotddate()

Get the value of Motddate.

public getMotddate() : DateTime|DateTimeImmutable
Return values
DateTime|DateTimeImmutable

getMotditem()

Get the value of Motditem.

public getMotditem() : int|null
Return values
int|null

getMotdtitle()

Get the value of Motdtitle.

public getMotdtitle() : string
Return values
string

getMotdtype()

Get the value of Motdtype.

public getMotdtype() : bool
Return values
bool

setMotdauthor()

Set the value of Motdauthor.

public setMotdauthor(int $motdauthor) : self
Parameters
$motdauthor : int
Return values
self

setMotdbody()

Set the value of Motdbody.

public setMotdbody(string $motdbody) : self
Parameters
$motdbody : string
Return values
self

setMotddate()

Set the value of Motddate.

public setMotddate(DateTime|DateTimeImmutable $motddate) : self
Parameters
$motddate : DateTime|DateTimeImmutable
Return values
self

setMotditem()

Set the value of Motditem.

public setMotditem(int $motditem) : self
Parameters
$motditem : int
Return values
self

setMotdtitle()

Set the value of Motdtitle.

public setMotdtitle(string $motdtitle) : self
Parameters
$motdtitle : string
Return values
self

setMotdtype()

Set the value of Motdtype.

public setMotdtype(bool $motdtype) : self
Parameters
$motdtype : bool
Return values
self

Search results