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