Legend of the Green Dragon

Armor
in package
implements Translatable

Armor.

Tags
ORM\Table

(name="armor")

ORM\Entity

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

Gedmo\TranslationEntity

(class="Lotgd\Core\Entity\ArmorTranslation")

Interfaces, Classes, Traits and Enums

Translatable

Table of Contents

$armorid  : int|null
$armorname  : string|null
$defense  : int|null
$level  : int|null
$translations  : Collection
$value  : int|null
__construct()  : mixed
__toString()  : mixed
addTranslation()  : void
getArmorid()  : int
Get the value of Armorid.
getArmorname()  : string
Get the value of Armorname.
getDefense()  : int
Get the value of Defense.
getLevel()  : int
Get the value of Level.
getTranslations()  : mixed
getValue()  : int
Get the value of Value.
setArmorid()  : self
Set the value of Armorid.
setArmorname()  : self
Set the value of Armorname.
setDefense()  : self
Set the value of Defense.
setLevel()  : self
Set the value of Level.
setValue()  : self
Set the value of Value.

Properties

$armorid

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

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

ORM\Id
ORM\GeneratedValue

(strategy="IDENTITY")

$armorname

private string|null $armorname = null
Tags
Gedmo\Translatable
ORM\Column

(name="armorname", type="string", length=128, nullable=true)

$defense

private int|null $defense = 1
Tags
ORM\Column

(name="defense", type="smallint", options={"unsigned"=true, "default"="1"})

Assert\Range

( min=1, max=65535 )

Assert\DivisibleBy

(1)

$level

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

(name="level", type="smallint", options={"unsigned"=true})

Assert\Range

( min=0, max=65535 )

Assert\DivisibleBy

(1)

$translations

private Collection $translations
Tags
ORM\OneToMany

(targetEntity="ArmorTranslation", mappedBy="object", cascade={"all"})

$value

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

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

Assert\Range

( min=0, max=42949672295 )

Assert\DivisibleBy

(1)

Methods

__construct()

public __construct() : mixed
Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed

getArmorid()

Get the value of Armorid.

public getArmorid() : int
Return values
int

getArmorname()

Get the value of Armorname.

public getArmorname() : string
Return values
string

getDefense()

Get the value of Defense.

public getDefense() : int
Return values
int

getLevel()

Get the value of Level.

public getLevel() : int
Return values
int

getTranslations()

public getTranslations() : mixed
Return values
mixed

getValue()

Get the value of Value.

public getValue() : int
Return values
int

setArmorid()

Set the value of Armorid.

public setArmorid(int $armorid) : self
Parameters
$armorid : int
Return values
self

setArmorname()

Set the value of Armorname.

public setArmorname(string $armorname) : self
Parameters
$armorname : string
Return values
self

setDefense()

Set the value of Defense.

public setDefense(int $defense) : self
Parameters
$defense : int
Return values
self

setLevel()

Set the value of Level.

public setLevel(int $level) : self
Parameters
$level : int
Return values
self

setValue()

Set the value of Value.

public setValue(int $value) : self
Parameters
$value : int
Return values
self

Search results