src/Entity/Server/Hetzner/Ip.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Server\Hetzner;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Generic\User;
  5. use App\Repository\Server\Hetzner\IpRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  8. #[ORM\Entity(repositoryClassIpRepository::class)]
  9. #[ORM\Table(name'`hetzner_sell_server_ip`')]
  10. class Ip extends BaseEntity
  11. {
  12.     #[ORM\Id]
  13.     #[ORM\Column(type'guid'uniquetrue)]
  14.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  15.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  16.     private $id;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $systemId null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $type null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $name null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $ip null;
  25.     #[ORM\ManyToOne(inversedBy'ips')]
  26.     private ?Server $server null;
  27.     #[ORM\ManyToOne(inversedBy'hetznerIps')]
  28.     #[ORM\JoinColumn(nullablefalse)]
  29.     private ?User $owner null;
  30.     #[ORM\Column]
  31.     private ?bool $isLocked null;
  32.     public function getId(): ?string
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getSystemId(): ?string
  37.     {
  38.         return $this->systemId;
  39.     }
  40.     public function setSystemId(?string $systemId): static
  41.     {
  42.         $this->systemId $systemId;
  43.         return $this;
  44.     }
  45.     public function getType(): ?string
  46.     {
  47.         return $this->type;
  48.     }
  49.     public function setType(?string $type): static
  50.     {
  51.         $this->type $type;
  52.         return $this;
  53.     }
  54.     public function getName(): ?string
  55.     {
  56.         return $this->name;
  57.     }
  58.     public function setName(?string $name): static
  59.     {
  60.         $this->name $name;
  61.         return $this;
  62.     }
  63.     public function getIp(): ?string
  64.     {
  65.         return $this->ip;
  66.     }
  67.     public function setIp(?string $ip): static
  68.     {
  69.         $this->ip $ip;
  70.         return $this;
  71.     }
  72.     public function getServer(): ?Server
  73.     {
  74.         return $this->server;
  75.     }
  76.     public function setServer(?Server $server): static
  77.     {
  78.         $this->server $server;
  79.         return $this;
  80.     }
  81.     public function getOwner(): ?User
  82.     {
  83.         return $this->owner;
  84.     }
  85.     public function setOwner(?User $owner): static
  86.     {
  87.         $this->owner $owner;
  88.         return $this;
  89.     }
  90.     public function isIsLocked(): ?bool
  91.     {
  92.         return $this->isLocked;
  93.     }
  94.     public function setIsLocked(bool $isLocked): static
  95.     {
  96.         $this->isLocked $isLocked;
  97.         return $this;
  98.     }
  99. }