Scalr\Modules\Platforms\OrphanedServer::__construct PHP Method

__construct() public method

Constructor
public __construct ( string $cloudServerId, string $instanceType, string $imageId, string $status, DateTime $launchTime, string $privateIp, string $publicIp = null, string $keyPairName = null, string $vpcId = null, string $subnetId = null, string $architecture = null, array $securityGroups = [], array $tags = [] )
$cloudServerId string Cloud server identifier
$instanceType string Cloud instance type
$imageId string Image identifier
$status string Server status
$launchTime DateTime The time the server was launched in UTC
$privateIp string Private IP address
$publicIp string optional Public IP address
$keyPairName string optional Key name
$vpcId string optional VPC identifier
$subnetId string optional Subnet identifier
$architecture string optional Architecture
$securityGroups array optional Security groups
$tags array optional Associated tags
    public function __construct($cloudServerId, $instanceType, $imageId, $status, \DateTime $launchTime, $privateIp, $publicIp = null, $keyPairName = null, $vpcId = null, $subnetId = null, $architecture = null, array $securityGroups = [], array $tags = [])
    {
        $this->cloudServerId = $cloudServerId;
        $this->instanceType = $instanceType;
        $this->imageId = $imageId;
        $this->status = $status;
        $this->privateIp = $privateIp;
        $this->publicIp = $publicIp;
        $this->keyPairName = $keyPairName;
        $this->vpcId = $vpcId;
        $this->subnetId = $subnetId;
        $this->architecture = $architecture;
        $this->securityGroups = $securityGroups;
        $this->tags = $tags;
        $this->launchTime = $launchTime;
    }