mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-10-20 07:39:42 +00:00
Modernize private property declarations in src/item
This commit is contained in:
@@ -52,21 +52,14 @@ final class ToolTier{
|
||||
);
|
||||
}
|
||||
|
||||
/** @var int */
|
||||
private $harvestLevel;
|
||||
/** @var int */
|
||||
private $maxDurability;
|
||||
/** @var int */
|
||||
private $baseAttackPoints;
|
||||
/** @var int */
|
||||
private $baseEfficiency;
|
||||
|
||||
private function __construct(string $name, int $harvestLevel, int $maxDurability, int $baseAttackPoints, int $baseEfficiency){
|
||||
private function __construct(
|
||||
string $name,
|
||||
private int $harvestLevel,
|
||||
private int $maxDurability,
|
||||
private int $baseAttackPoints,
|
||||
private int $baseEfficiency
|
||||
){
|
||||
$this->Enum___construct($name);
|
||||
$this->harvestLevel = $harvestLevel;
|
||||
$this->maxDurability = $maxDurability;
|
||||
$this->baseAttackPoints = $baseAttackPoints;
|
||||
$this->baseEfficiency = $baseEfficiency;
|
||||
}
|
||||
|
||||
public function getHarvestLevel() : int{
|
||||
|
Reference in New Issue
Block a user