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