src/Entity/VPN/OpenVPN/Server.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity\VPN\OpenVPN;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Country;
  5. use App\Repository\VPN\OpenVPN\ServerRepository;
  6. use Doctrine\DBAL\Types\Types;
  7. use Doctrine\ORM\Mapping as ORM;
  8. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  9. #[ORM\Table(name'`ovpn_server`')]
  10. #[ORM\Entity(repositoryClassServerRepository::class)]
  11. class Server extends BaseEntity
  12. {
  13.     #[ORM\Id]
  14.     #[ORM\Column(type'guid'uniquetrue)]
  15.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  16.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  17.     private ?string $id null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $UMEndpoint null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $UMUsername null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $UMPassword null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $UMProfileName null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $address null;
  28.     #[ORM\Column(length255)]
  29.     private ?string $l2tpAddress null;
  30.     #[ORM\Column(length255)]
  31.     private ?string $l2tpSecret null;
  32.     #[ORM\Column]
  33.     private ?int $UMSSHPort null;
  34.     #[ORM\Column(typeTypes::TEXT)]
  35.     private ?string $OVPNConfigFile null;
  36.     #[ORM\Column]
  37.     private ?bool $isServerHasOwnerInfo null;
  38.     #[ORM\ManyToOne(inversedBy'OpenVPNServers')]
  39.     #[ORM\JoinColumn(nullablefalse)]
  40.     private ?Country $country null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $name null;
  43.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  44.     private ?string $note null;
  45.     public function __construct()
  46.     {
  47.         parent::__construct();
  48.     }
  49.     public function getId(): ?string
  50.     {
  51.         return $this->id;
  52.     }
  53.     public function getUMEndpoint(): ?string
  54.     {
  55.         return $this->UMEndpoint;
  56.     }
  57.     public function setUMEndpoint(string $UMEndpoint): static
  58.     {
  59.         $this->UMEndpoint $UMEndpoint;
  60.         return $this;
  61.     }
  62.     public function getUMUsername(): ?string
  63.     {
  64.         return $this->UMUsername;
  65.     }
  66.     public function setUMUsername(string $UMUsername): static
  67.     {
  68.         $this->UMUsername $UMUsername;
  69.         return $this;
  70.     }
  71.     public function getUMPassword(): ?string
  72.     {
  73.         return $this->UMPassword;
  74.     }
  75.     public function setUMPassword(string $UMPassword): static
  76.     {
  77.         $this->UMPassword $UMPassword;
  78.         return $this;
  79.     }
  80.     public function getUMProfileName(): ?string
  81.     {
  82.         return $this->UMProfileName;
  83.     }
  84.     public function setUMProfileName(string $UMProfileName): static
  85.     {
  86.         $this->UMProfileName $UMProfileName;
  87.         return $this;
  88.     }
  89.     public function getAddress(): ?string
  90.     {
  91.         return $this->address;
  92.     }
  93.     public function setAddress(string $address): static
  94.     {
  95.         $this->address $address;
  96.         return $this;
  97.     }
  98.     public function getL2tpAddress(): ?string
  99.     {
  100.         return $this->l2tpAddress;
  101.     }
  102.     public function setL2tpAddress(string $l2tpAddress): static
  103.     {
  104.         $this->l2tpAddress $l2tpAddress;
  105.         return $this;
  106.     }
  107.     public function getL2tpSecret(): ?string
  108.     {
  109.         return $this->l2tpSecret;
  110.     }
  111.     public function setL2tpSecret(string $l2tpSecret): static
  112.     {
  113.         $this->l2tpSecret $l2tpSecret;
  114.         return $this;
  115.     }
  116.     public function getUMSSHPort(): ?int
  117.     {
  118.         return $this->UMSSHPort;
  119.     }
  120.     public function setUMSSHPort(int $UMSSHPort): static
  121.     {
  122.         $this->UMSSHPort $UMSSHPort;
  123.         return $this;
  124.     }
  125.     public function getOVPNConfigFile(): ?string
  126.     {
  127.         return $this->OVPNConfigFile;
  128.     }
  129.     public function setOVPNConfigFile(string $OVPNConfigFile): static
  130.     {
  131.         $this->OVPNConfigFile $OVPNConfigFile;
  132.         return $this;
  133.     }
  134.     public function isServerHasOwnerInfo(): ?bool
  135.     {
  136.         return $this->isServerHasOwnerInfo;
  137.     }
  138.     public function setIsServerHasOwnerInfo(bool $isServerHasOwnerInfo): static
  139.     {
  140.         $this->isServerHasOwnerInfo $isServerHasOwnerInfo;
  141.         return $this;
  142.     }
  143.     public function getCountry(): ?Country
  144.     {
  145.         return $this->country;
  146.     }
  147.     public function setCountry(?Country $country): static
  148.     {
  149.         $this->country $country;
  150.         return $this;
  151.     }
  152.     public function getName(): ?string
  153.     {
  154.         return $this->name;
  155.     }
  156.     public function setName(string $name): static
  157.     {
  158.         $this->name $name;
  159.         return $this;
  160.     }
  161.     public function getNote(): ?string
  162.     {
  163.         return $this->note;
  164.     }
  165.     public function setNote(?string $note): static
  166.     {
  167.         $this->note $note;
  168.         return $this;
  169.     }
  170. }