2018-01-28 17:14:14 -06:00
|
|
|
<?php
|
|
|
|
|
|
2024-03-12 22:39:16 -04:00
|
|
|
namespace App\Models\Objects;
|
2018-01-28 17:14:14 -06:00
|
|
|
|
|
|
|
|
class DeploymentObject
|
|
|
|
|
{
|
2022-10-14 10:59:20 -06:00
|
|
|
private bool $dedicated = false;
|
2018-01-28 17:14:14 -06:00
|
|
|
|
2025-03-03 14:41:19 -05:00
|
|
|
/** @var string[] */
|
2024-05-21 22:04:12 -04:00
|
|
|
private array $tags = [];
|
|
|
|
|
|
2025-03-03 14:41:19 -05:00
|
|
|
/** @var array<int|string> */
|
2022-10-14 10:59:20 -06:00
|
|
|
private array $ports = [];
|
2018-01-28 17:14:14 -06:00
|
|
|
|
|
|
|
|
public function isDedicated(): bool
|
|
|
|
|
{
|
|
|
|
|
return $this->dedicated;
|
|
|
|
|
}
|
|
|
|
|
|
2022-10-14 10:59:20 -06:00
|
|
|
public function setDedicated(bool $dedicated): self
|
2018-01-28 17:14:14 -06:00
|
|
|
{
|
|
|
|
|
$this->dedicated = $dedicated;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-03 14:41:19 -05:00
|
|
|
/** @return array<int|string> */
|
2018-01-28 17:14:14 -06:00
|
|
|
public function getPorts(): array
|
|
|
|
|
{
|
|
|
|
|
return $this->ports;
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-03 14:41:19 -05:00
|
|
|
/** @param array<int|string> $ports */
|
2022-10-14 10:59:20 -06:00
|
|
|
public function setPorts(array $ports): self
|
2018-01-28 17:14:14 -06:00
|
|
|
{
|
|
|
|
|
$this->ports = $ports;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
2024-05-21 22:04:12 -04:00
|
|
|
|
2025-03-03 14:41:19 -05:00
|
|
|
/**
|
|
|
|
|
* @return string[]
|
|
|
|
|
*/
|
2024-05-21 22:04:12 -04:00
|
|
|
public function getTags(): array
|
|
|
|
|
{
|
|
|
|
|
return $this->tags;
|
|
|
|
|
}
|
|
|
|
|
|
2025-03-03 14:41:19 -05:00
|
|
|
/**
|
|
|
|
|
* @param string[] $tags
|
|
|
|
|
* @return $this
|
|
|
|
|
*/
|
2024-05-21 22:04:12 -04:00
|
|
|
public function setTags(array $tags): self
|
|
|
|
|
{
|
|
|
|
|
$this->tags = $tags;
|
|
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
|
}
|
2018-01-28 17:14:14 -06:00
|
|
|
}
|