*/ private array $allocations; private int $totalAllocated; private ?int $unallocated = null; /** * @param list $allocations */ public function __construct( array $allocations, int $totalAllocated, ?int $unallocated = 0, ) { $this->allocations = $allocations; $this->totalAllocated = $totalAllocated; $this->unallocated = $unallocated; } /** * @return list */ public function getAllocations(): array { return $this->allocations; } public function getTotalAllocated(): int { return $this->totalAllocated; } public function getUnallocated(): int { return $this->unallocated; } }