Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
pterodactyl
GitHub Repository: pterodactyl/panel
Path: blob/1.0-develop/app/Models/Objects/DeploymentObject.php
10279 views
1
<?php
2
3
namespace Pterodactyl\Models\Objects;
4
5
class DeploymentObject
6
{
7
private bool $dedicated = false;
8
9
private array $locations = [];
10
11
private array $ports = [];
12
13
public function isDedicated(): bool
14
{
15
return $this->dedicated;
16
}
17
18
public function setDedicated(bool $dedicated): self
19
{
20
$this->dedicated = $dedicated;
21
22
return $this;
23
}
24
25
public function getLocations(): array
26
{
27
return $this->locations;
28
}
29
30
public function setLocations(array $locations): self
31
{
32
$this->locations = $locations;
33
34
return $this;
35
}
36
37
public function getPorts(): array
38
{
39
return $this->ports;
40
}
41
42
public function setPorts(array $ports): self
43
{
44
$this->ports = $ports;
45
46
return $this;
47
}
48
}
49
50