Weapons
in package
implements
Translatable
Weapons.
Tags
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
$level
private
int|null
$level
= 0
Tags
$translations
private
Collection
$translations
Tags
$value
private
int|null
$value
= 0
Tags
$weaponid
private
int|null
$weaponid
= null
Tags
$weaponname
private
string|null
$weaponname
= null
Tags
Methods
__construct()
public
__construct() : mixed
Return values
mixed —__toString()
public
__toString() : mixed
Return values
mixed —addTranslation()
public
addTranslation(WeaponsTranslation $t) : void
Parameters
- $t : WeaponsTranslation
Return values
void —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