src/Entity/Gateway.php line 12

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\GatewayRepository;
  4. use App\Trait\ActivableTrait;
  5. use App\Trait\ArrayableTrait;
  6. use App\Trait\DateTrait;
  7. use Doctrine\ORM\Mapping as ORM;
  8. #[ORM\Entity(repositoryClassGatewayRepository::class)]
  9. class Gateway
  10. {
  11.     use ArrayableTrait;
  12.     use ActivableTrait;
  13.     use DateTrait {
  14.         __construct as private constructDate;
  15.     }
  16.     #[ORM\Id]
  17.     #[ORM\GeneratedValue]
  18.     #[ORM\Column]
  19.     private ?int $id null;
  20.     #[ORM\Column(length255)]
  21.     private ?string $name null;
  22.     #[ORM\ManyToOne(inversedBy'gateways')]
  23.     #[ORM\JoinColumn(nullablefalse)]
  24.     private ?Establishment $establishment null;
  25.     #[ORM\Column(length255)]
  26.     private ?string $redirect_success null;
  27.     #[ORM\Column(length255)]
  28.     private ?string $redirect_error null;
  29.     #[ORM\Column(length255)]
  30.     private ?string $redirect_cancel null;
  31.     #[ORM\Column(length255nullabletrue)]
  32.     private ?string $callback null;
  33.     #[ORM\Column(length255)]
  34.     private ?string $status null;
  35.     #[ORM\Column(length255)]
  36.     private ?string $operator null;
  37.     #[ORM\Column]
  38.     private ?array $methods = [];
  39.     #[ORM\Column(length255nullabletrue)]
  40.     private ?string $keyPublic null;
  41.     #[ORM\Column(length255nullabletrue)]
  42.     private ?string $keyPrivate null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     private ?string $username null;
  45.     #[ORM\Column(length255nullabletrue)]
  46.     private ?string $password null;
  47.     public function __construct()
  48.     {
  49.         $this->constructDate();
  50.     }
  51.     public function getId(): ?int
  52.     {
  53.         return $this->id;
  54.     }
  55.     public function getName(): ?string
  56.     {
  57.         return $this->name;
  58.     }
  59.     public function setName(string $name): static
  60.     {
  61.         $this->name $name;
  62.         return $this;
  63.     }
  64.     public function getEstablishment(): ?Establishment
  65.     {
  66.         return $this->establishment;
  67.     }
  68.     public function setEstablishment(?Establishment $establishment): static
  69.     {
  70.         $this->establishment $establishment;
  71.         return $this;
  72.     }
  73.     public function getRedirectSuccess(): ?string
  74.     {
  75.         return $this->redirect_success;
  76.     }
  77.     public function setRedirectSuccess(string $redirect_success): static
  78.     {
  79.         $this->redirect_success $redirect_success;
  80.         return $this;
  81.     }
  82.     public function getRedirectError(): ?string
  83.     {
  84.         return $this->redirect_error;
  85.     }
  86.     public function setRedirectError(string $redirect_error): static
  87.     {
  88.         $this->redirect_error $redirect_error;
  89.         return $this;
  90.     }
  91.     public function getRedirectCancel(): ?string
  92.     {
  93.         return $this->redirect_cancel;
  94.     }
  95.     public function setRedirectCancel(string $redirect_cancel): static
  96.     {
  97.         $this->redirect_cancel $redirect_cancel;
  98.         return $this;
  99.     }
  100.     public function getCallback(): ?string
  101.     {
  102.         return $this->callback;
  103.     }
  104.     public function setCallback(?string $callback): static
  105.     {
  106.         $this->callback $callback;
  107.         return $this;
  108.     }
  109.     public function getStatus(): ?string
  110.     {
  111.         return $this->status;
  112.     }
  113.     public function setStatus(string $status): static
  114.     {
  115.         $this->status $status;
  116.         return $this;
  117.     }
  118.     public function getOperator(): ?string
  119.     {
  120.         return $this->operator;
  121.     }
  122.     public function setOperator(string $operator): static
  123.     {
  124.         $this->operator $operator;
  125.         return $this;
  126.     }
  127.     public function getMethods(): array
  128.     {
  129.         return $this->methods;
  130.     }
  131.     public function setMethods(array $methods): static
  132.     {
  133.         $this->methods $methods;
  134.         return $this;
  135.     }
  136.     public function getKeyPublic(): ?string
  137.     {
  138.         return $this->keyPublic;
  139.     }
  140.     public function setKeyPublic(?string $keyPublic): static
  141.     {
  142.         $this->keyPublic $keyPublic;
  143.         return $this;
  144.     }
  145.     public function getKeyPrivate(): ?string
  146.     {
  147.         return $this->keyPrivate;
  148.     }
  149.     public function setKeyPrivate(?string $keyPrivate): static
  150.     {
  151.         $this->keyPrivate $keyPrivate;
  152.         return $this;
  153.     }
  154.     public function getUsername(): ?string
  155.     {
  156.         return $this->username;
  157.     }
  158.     public function setUsername(?string $username): static
  159.     {
  160.         $this->username $username;
  161.         return $this;
  162.     }
  163.     public function getPassword(): ?string
  164.     {
  165.         return $this->password;
  166.     }
  167.     public function setPassword(?string $password): static
  168.     {
  169.         $this->password $password;
  170.         return $this;
  171.     }
  172. }