Modernize private property declarations in src/inventory/transaction

This commit is contained in:
Dylan K. Taylor 2022-05-17 20:51:22 +01:00
parent a06b9294df
commit fb4d332d1a
No known key found for this signature in database
GPG Key ID: 8927471A91CAFD3D
2 changed files with 3 additions and 4 deletions

View File

@ -57,8 +57,8 @@ class CraftingTransaction extends InventoryTransaction{
protected $inputs = []; protected $inputs = [];
/** @var Item[] */ /** @var Item[] */
protected $outputs = []; protected $outputs = [];
/** @var CraftingManager */
private $craftingManager; private CraftingManager $craftingManager;
public function __construct(Player $source, CraftingManager $craftingManager, array $actions = []){ public function __construct(Player $source, CraftingManager $craftingManager, array $actions = []){
parent::__construct($source, $actions); parent::__construct($source, $actions);

View File

@ -36,8 +36,7 @@ class SlotChangeAction extends InventoryAction{
/** @var Inventory */ /** @var Inventory */
protected $inventory; protected $inventory;
/** @var int */ private int $inventorySlot;
private $inventorySlot;
public function __construct(Inventory $inventory, int $inventorySlot, Item $sourceItem, Item $targetItem){ public function __construct(Inventory $inventory, int $inventorySlot, Item $sourceItem, Item $targetItem){
parent::__construct($sourceItem, $targetItem); parent::__construct($sourceItem, $targetItem);