src/Entity/Website/VPN/OpenVPN/Server.php line 15

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