You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
1.1 KiB
PHP
48 lines
1.1 KiB
PHP
<?php
|
|
|
|
namespace App\Services\Cloud;
|
|
|
|
/** Immutable candidate decision produced from an already-locked catalog. */
|
|
final readonly class CloudPublicNetworkCandidatePlan
|
|
{
|
|
public function __construct(
|
|
private object $attachment,
|
|
private array $pools,
|
|
private array $contracts,
|
|
private array $candidates,
|
|
private array $changedFamilies = []
|
|
) {
|
|
}
|
|
|
|
public function attachment(): object
|
|
{
|
|
return $this->attachment;
|
|
}
|
|
|
|
public function pools(): array
|
|
{
|
|
return $this->pools;
|
|
}
|
|
|
|
public function candidates(): array
|
|
{
|
|
return $this->candidates;
|
|
}
|
|
|
|
public function changedFamilies(): array
|
|
{
|
|
return $this->changedFamilies;
|
|
}
|
|
|
|
/** Preserve the allocator's established selection value shape. */
|
|
public function allocationSelection(): array
|
|
{
|
|
return [
|
|
'attachment' => $this->attachment,
|
|
'pools' => $this->pools,
|
|
'contracts' => $this->contracts,
|
|
'address_candidates' => $this->candidates,
|
|
];
|
|
}
|
|
}
|