Legend of the Green Dragon

Weapons
in package
implements Translatable

Weapons.

Tags
ORM\Table

(name="weapons")

ORM\Entity

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

Gedmo\TranslationEntity

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

Interfaces, Classes, Traits and Enums

Translatable

Table of Contents

$damage  : int|null
$level  : int|null
$translations  : Collection
$value  : int|null
$weaponid  : int|null
$weaponname  : string|null
__construct()  : mixed
__toString()  : mixed
addTranslation()  : void
getDamage()  : int
Get the value of Damage.
getLevel()  : int
Get the value of Level.
getTranslations()  : mixed
getValue()  : int
Get the value of Value.
getWeaponid()  : int|null
Get the value of Weaponid.
getWeaponname()  : string
Get the value of Weaponname.
setDamage()  : self
Set the value of Damage.
setLevel()  : self
Set the value of Level.
setValue()  : self
Set the value of Value.
setWeaponid()  : self
Set the value of Weaponid.
setWeaponname()  : self
Set the value of Weaponname.

Properties

$damage

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

(name="damage", 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="WeaponsTranslation", 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)

$weaponid

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

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

ORM\Id
ORM\GeneratedValue

(strategy="IDENTITY")

$weaponname

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

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

Methods

__construct()

public __construct() : mixed
Return values
mixed

__toString()

public __toString() : mixed
Return values
mixed

getDamage()

Get the value of Damage.

public getDamage() : 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

getWeaponid()

Get the value of Weaponid.

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

getWeaponname()

Get the value of Weaponname.

public getWeaponname() : string
Return values
string

setDamage()

Set the value of Damage.

public setDamage(int $damage) : self
Parameters
$damage : 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

setWeaponid()

Set the value of Weaponid.

public setWeaponid(int $weaponid) : self
Parameters
$weaponid : int
Return values
self

setWeaponname()

Set the value of Weaponname.

public setWeaponname(string $weaponname) : self
Parameters
$weaponname : string
Return values
self

Search results