src/Entity/VPN/V2ray/Protocol.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\VPN\V2ray;
  3. use App\Entity\BaseEntity;
  4. use App\Entity\Country;
  5. use App\Repository\VPN\V2ray\ProtocolRepository;
  6. use Doctrine\ORM\Mapping as ORM;
  7. use Symfony\Bridge\Doctrine\IdGenerator\UuidGenerator;
  8. #[ORM\Entity(repositoryClassProtocolRepository::class)]
  9. class Protocol extends BaseEntity
  10. {
  11.     #[ORM\Id]
  12.     #[ORM\Column(type'guid'uniquetrue)]
  13.     #[ORM\GeneratedValue(strategy'CUSTOM')]
  14.     #[ORM\CustomIdGenerator(class: UuidGenerator::class)]
  15.     private ?string $id null;
  16.     #[ORM\Column(length255)]
  17.     private ?string $type null;
  18.     #[ORM\Column(length255)]
  19.     private ?string $tag null;
  20.     #[ORM\Column]
  21.     private ?int $port null;
  22.     #[ORM\Column(length255)]
  23.     private ?string $protocol null;
  24.     #[ORM\Column(length255)]
  25.     private ?string $network null;
  26.     #[ORM\Column(length255)]
  27.     private ?string $security null;
  28.     #[ORM\Column(length255nullabletrue)]
  29.     private ?string $realityDest null;
  30.     #[ORM\Column(length255nullabletrue)]
  31.     private ?string $realityServerName null;
  32.     #[ORM\Column(length255nullabletrue)]
  33.     private ?string $realityPrivateKey null;
  34.     #[ORM\Column(length255nullabletrue)]
  35.     private ?string $realityPublicKey null;
  36.     #[ORM\Column(length255nullabletrue)]
  37.     private ?string $realityShortId null;
  38.     #[ORM\Column(length255nullabletrue)]
  39.     private ?string $certificateFile null;
  40.     #[ORM\Column(length255nullabletrue)]
  41.     private ?string $keyFile null;
  42.     #[ORM\Column(length255nullabletrue)]
  43.     private ?string $showAddress null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     private ?string $showPort null;
  46.     #[ORM\Column(length255nullabletrue)]
  47.     private ?string $showHost null;
  48.     #[ORM\Column(length255nullabletrue)]
  49.     private ?string $showSni null;
  50.     #[ORM\Column(length255nullabletrue)]
  51.     private ?string $showFingerPrint null;
  52.     #[ORM\Column(length255nullabletrue)]
  53.     private ?string $operator null;
  54.     #[ORM\Column]
  55.     private ?bool $isFragment null;
  56.     #[ORM\Column]
  57.     private ?bool $allowInsecure null;
  58.     #[ORM\Column]
  59.     private ?bool $justForShow null;
  60.     #[ORM\Column(length255nullabletrue)]
  61.     private ?string $trojanServiceName null;
  62.     #[ORM\Column(length255nullabletrue)]
  63.     private ?string $title null;
  64.     #[ORM\Column(length255nullabletrue)]
  65.     private ?string $path null;
  66.     #[ORM\ManyToOne(inversedBy'protocols')]
  67.     #[ORM\JoinColumn(nullablefalse)]
  68.     private ?Server $server null;
  69.     #[ORM\ManyToOne(inversedBy'protocols')]
  70.     private ?Country $country null;
  71.     public function getId(): ?string
  72.     {
  73.         return $this->id;
  74.     }
  75.     public function getType(): ?string
  76.     {
  77.         return $this->type;
  78.     }
  79.     public function setType(string $type): static
  80.     {
  81.         $this->type $type;
  82.         return $this;
  83.     }
  84.     public function getTag(): ?string
  85.     {
  86.         return $this->tag;
  87.     }
  88.     public function setTag(string $tag): static
  89.     {
  90.         $this->tag $tag;
  91.         return $this;
  92.     }
  93.     public function getPort(): ?int
  94.     {
  95.         return $this->port;
  96.     }
  97.     public function setPort(int $port): static
  98.     {
  99.         $this->port $port;
  100.         return $this;
  101.     }
  102.     public function getProtocol(): ?string
  103.     {
  104.         return $this->protocol;
  105.     }
  106.     public function setProtocol(string $protocol): static
  107.     {
  108.         $this->protocol $protocol;
  109.         return $this;
  110.     }
  111.     public function getNetwork(): ?string
  112.     {
  113.         return $this->network;
  114.     }
  115.     public function setNetwork(string $network): static
  116.     {
  117.         $this->network $network;
  118.         return $this;
  119.     }
  120.     public function getSecurity(): ?string
  121.     {
  122.         return $this->security;
  123.     }
  124.     public function setSecurity(string $security): static
  125.     {
  126.         $this->security $security;
  127.         return $this;
  128.     }
  129.     public function getRealityDest(): ?string
  130.     {
  131.         return $this->realityDest;
  132.     }
  133.     public function setRealityDest(?string $realityDest): static
  134.     {
  135.         $this->realityDest $realityDest;
  136.         return $this;
  137.     }
  138.     public function getRealityServerName(): ?string
  139.     {
  140.         return $this->realityServerName;
  141.     }
  142.     public function setRealityServerName(?string $realityServerName): static
  143.     {
  144.         $this->realityServerName $realityServerName;
  145.         return $this;
  146.     }
  147.     public function getRealityPrivateKey(): ?string
  148.     {
  149.         return $this->realityPrivateKey;
  150.     }
  151.     public function setRealityPrivateKey(?string $realityPrivateKey): static
  152.     {
  153.         $this->realityPrivateKey $realityPrivateKey;
  154.         return $this;
  155.     }
  156.     public function getRealityPublicKey(): ?string
  157.     {
  158.         return $this->realityPublicKey;
  159.     }
  160.     public function setRealityPublicKey(?string $realityPublicKey): static
  161.     {
  162.         $this->realityPublicKey $realityPublicKey;
  163.         return $this;
  164.     }
  165.     public function getRealityShortId(): ?string
  166.     {
  167.         return $this->realityShortId;
  168.     }
  169.     public function setRealityShortId(?string $realityShortId): static
  170.     {
  171.         $this->realityShortId $realityShortId;
  172.         return $this;
  173.     }
  174.     public function getCertificateFile(): ?string
  175.     {
  176.         return $this->certificateFile;
  177.     }
  178.     public function setCertificateFile(?string $certificateFile): static
  179.     {
  180.         $this->certificateFile $certificateFile;
  181.         return $this;
  182.     }
  183.     public function getKeyFile(): ?string
  184.     {
  185.         return $this->keyFile;
  186.     }
  187.     public function setKeyFile(?string $keyFile): static
  188.     {
  189.         $this->keyFile $keyFile;
  190.         return $this;
  191.     }
  192.     public function getShowAddress(): ?string
  193.     {
  194.         return $this->showAddress == null $this->realityDest $this->showAddress;
  195.     }
  196.     public function setShowAddress(?string $showAddress): static
  197.     {
  198.         $this->showAddress $showAddress;
  199.         return $this;
  200.     }
  201.     public function getShowPort(): ?string
  202.     {
  203.         return $this->showPort == null $this->port $this->showPort;
  204.     }
  205.     public function setShowPort(?string $showPort): static
  206.     {
  207.         $this->showPort $showPort;
  208.         return $this;
  209.     }
  210.     public function getShowHost(): ?string
  211.     {
  212.         return $this->showHost == null $this->realityDest $this->showHost;
  213.     }
  214.     public function setShowHost(?string $showHost): static
  215.     {
  216.         $this->showHost $showHost;
  217.         return $this;
  218.     }
  219.     public function getShowSni(): ?string
  220.     {
  221.         return $this->showSni == null $this->realityServerName $this->showSni;
  222.     }
  223.     public function setShowSni(?string $showSni): static
  224.     {
  225.         $this->showSni $showSni;
  226.         return $this;
  227.     }
  228.     public function getShowFingerPrint(): ?string
  229.     {
  230.         return $this->showFingerPrint == null 'chrome' $this->showFingerPrint;
  231.     }
  232.     public function setShowFingerPrint(?string $showFingerPrint): static
  233.     {
  234.         $this->showFingerPrint $showFingerPrint;
  235.         return $this;
  236.     }
  237.     public function getOperator(): ?string
  238.     {
  239.         return $this->operator;
  240.     }
  241.     public function setOperator(?string $operator): static
  242.     {
  243.         $this->operator $operator;
  244.         return $this;
  245.     }
  246.     public function isIsFragment(): ?bool
  247.     {
  248.         return $this->isFragment;
  249.     }
  250.     public function setIsFragment(bool $isFragment): static
  251.     {
  252.         $this->isFragment $isFragment;
  253.         return $this;
  254.     }
  255.     public function isAllowInsecure(): ?bool
  256.     {
  257.         return $this->allowInsecure;
  258.     }
  259.     public function setAllowInsecure(bool $allowInsecure): static
  260.     {
  261.         $this->allowInsecure $allowInsecure;
  262.         return $this;
  263.     }
  264.     public function isJustForShow(): ?bool
  265.     {
  266.         return $this->justForShow;
  267.     }
  268.     public function setJustForShow(bool $justForShow): static
  269.     {
  270.         $this->justForShow $justForShow;
  271.         return $this;
  272.     }
  273.     public function getTrojanServiceName(): ?string
  274.     {
  275.         return $this->trojanServiceName;
  276.     }
  277.     public function setTrojanServiceName(?string $trojanServiceName): static
  278.     {
  279.         $this->trojanServiceName $trojanServiceName;
  280.         return $this;
  281.     }
  282.     public function getTitle(): ?string
  283.     {
  284.         return $this->title;
  285.     }
  286.     public function setTitle(?string $title): static
  287.     {
  288.         $this->title $title;
  289.         return $this;
  290.     }
  291.     public function getPath(): ?string
  292.     {
  293.         return $this->path;
  294.     }
  295.     public function setPath(?string $path): static
  296.     {
  297.         $this->path $path;
  298.         return $this;
  299.     }
  300.     public function getServer(): ?Server
  301.     {
  302.         return $this->server;
  303.     }
  304.     public function setServer(?Server $server): static
  305.     {
  306.         $this->server $server;
  307.         return $this;
  308.     }
  309.     public function getCountry(): ?Country
  310.     {
  311.         return $this->country;
  312.     }
  313.     public function setCountry(?Country $country): static
  314.     {
  315.         $this->country $country;
  316.         return $this;
  317.     }
  318. }