2018-01-28 23:14:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace Pterodactyl\Models\Objects;
|
|
|
|
|
|
|
|
class DeploymentObject
|
|
|
|
{
|
2022-10-14 16:59:20 +00:00
|
|
|
private bool $dedicated = false;
|
2018-01-28 23:14:14 +00:00
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
private array $locations = [];
|
2018-01-28 23:14:14 +00:00
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
private array $ports = [];
|
2018-01-28 23:14:14 +00:00
|
|
|
|
|
|
|
public function isDedicated(): bool
|
|
|
|
{
|
|
|
|
return $this->dedicated;
|
|
|
|
}
|
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
public function setDedicated(bool $dedicated): self
|
2018-01-28 23:14:14 +00:00
|
|
|
{
|
|
|
|
$this->dedicated = $dedicated;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getLocations(): array
|
|
|
|
{
|
|
|
|
return $this->locations;
|
|
|
|
}
|
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
public function setLocations(array $locations): self
|
2018-01-28 23:14:14 +00:00
|
|
|
{
|
|
|
|
$this->locations = $locations;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
public function getPorts(): array
|
|
|
|
{
|
|
|
|
return $this->ports;
|
|
|
|
}
|
|
|
|
|
2022-10-14 16:59:20 +00:00
|
|
|
public function setPorts(array $ports): self
|
2018-01-28 23:14:14 +00:00
|
|
|
{
|
|
|
|
$this->ports = $ports;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
}
|