pocketmine\inventory\BaseTransaction::__construct PHP Метод

__construct() публичный Метод

public __construct ( pocketmine\inventory\Inventory $inventory, integer $slot, Item $targetItem, string[] $achievements = [], integer $transactionType = Transaction::TYPE_NORMAL )
$inventory pocketmine\inventory\Inventory
$slot integer
$targetItem pocketmine\item\Item
$achievements string[]
$transactionType integer
    public function __construct($inventory, $slot, Item $targetItem, $achievements = [], $transactionType = Transaction::TYPE_NORMAL)
    {
        $this->inventory = $inventory;
        $this->slot = (int) $slot;
        $this->targetItem = clone $targetItem;
        $this->creationTime = microtime(true);
        $this->transactionType = $transactionType;
        $this->achievements = $achievements;
    }