public function __construct(Inventory $inventory, Position $pos) { $this->inventory = $inventory; parent::__construct($pos->x, $pos->y, $pos->z, $pos->level); }