| Total Complexity | 4 |
| Total Lines | 46 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | final class ServiceState |
||
| 8 | { |
||
| 9 | /** @var Service|null */ |
||
| 10 | private $developmentVersion; |
||
| 11 | |||
| 12 | /** @var Service|null */ |
||
| 13 | private $testVersion; |
||
| 14 | |||
| 15 | /** @var Service|null */ |
||
| 16 | private $productionVersion; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * ServiceState constructor. |
||
| 20 | * @param null|Service $developmentVersion |
||
| 21 | * @param null|Service $testVersion |
||
| 22 | * @param null|Service $productionVersion |
||
| 23 | */ |
||
| 24 | public function __construct(?Service $developmentVersion, ?Service $testVersion, ?Service $productionVersion) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @return null|Service |
||
| 33 | */ |
||
| 34 | public function getDevelopmentVersion(): ?Service |
||
| 35 | { |
||
| 36 | return $this->developmentVersion; |
||
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * @return null|Service |
||
| 41 | */ |
||
| 42 | public function getTestVersion(): ?Service |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @return null|Service |
||
| 49 | */ |
||
| 50 | public function getProductionVersion(): ?Service |
||
| 55 |