for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheAentMachine\Aent\Event\Service\Model;
use TheAentMachine\Service\Service;
final class ServiceState
{
/** @var Service|null */
private $developmentVersion;
private $testVersion;
private $productionVersion;
/**
* ServiceState constructor.
* @param null|Service $developmentVersion
* @param null|Service $testVersion
* @param null|Service $productionVersion
*/
public function __construct(?Service $developmentVersion, ?Service $testVersion, ?Service $productionVersion)
$this->developmentVersion = $developmentVersion;
$this->testVersion = $testVersion;
$this->productionVersion = $productionVersion;
}
* @return null|Service
public function getDevelopmentVersion(): ?Service
return $this->developmentVersion;
public function getTestVersion(): ?Service
return $this->testVersion;
public function getProductionVersion(): ?Service
return $this->productionVersion;