src/Entity/BankIdentification.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BankIdentificationRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use App\Traits\DateTimeTrait;
  7. use Overblog\GraphQLBundle\Annotation\Field;
  8. use App\Attribute\Searchable;
  9. #[ORM\Entity(repositoryClassBankIdentificationRepository::class)]
  10. class BankIdentification extends BasicEntity
  11. {
  12.     use DateTimeTrait;
  13.     #[ORM\Id]
  14.     #[ORM\GeneratedValue]
  15.     #[ORM\Column]
  16.     #[Field(name"id"type"int")]
  17.     private ?int $id null;
  18.     #[ORM\ManyToOne(targetEntityOrganisation::class, inversedBy"bankIdentifications")]
  19.     #[ORM\JoinColumn(nullablefalse)]
  20.     private $organisation;
  21.     #[ORM\Column]
  22.     #[Field(name"detected_at"type"string")]
  23.     private ?\DateTimeImmutable $detectedAt null;
  24.     #[ORM\Column(typeTypes::TEXT)]
  25.     #[Field(name"location"type"string")]
  26.     private ?string $location null;
  27.     #[ORM\Column(typeTypes::TEXT)]
  28.     #[Field(name"fragment"type"string")]
  29.     private ?string $fragment null;
  30.     #[ORM\Column(type'string'length255)]
  31.     #[Field(name"network"type"string")]
  32.     private ?string $network null;
  33.     #[ORM\Column(type'string'length255nullabletrue)]
  34.     #[Field(name"bin"type"string")]
  35.     #[Searchable(name'bin')]
  36.     private ?string $bin null;
  37.     #[ORM\Column(type'string'length255)]
  38.     #[Field(name"ccn"type"string")]
  39.     #[Searchable(name'ccn')]
  40.     private string $ccn;
  41.     #[ORM\Column(type'string'length255)]
  42.     #[Field(name"cvv"type"string")]
  43.     private ?string $cvv null;
  44.     #[ORM\Column(length255nullabletrue)]
  45.     #[Field(name"expDate"type"string")]
  46.     private ?string $expDate null;
  47.     #[ORM\Column(length255)]
  48.     #[Field(name"hash"type"string")]
  49.     private ?string $hash null;
  50.     #[ORM\ManyToOne(targetEntityStatus::class, inversedBy'leakedPasswords')]
  51.     #[ORM\JoinColumn(nullabletrueoptions: ['default' => 1])]
  52.     #[Field(name"status")]
  53.     private $status;
  54.     public function getId(): ?int
  55.     {
  56.         return $this->id;
  57.     }
  58.     public function getOrganisation(): ?Organisation
  59.     {
  60.         return $this->organisation;
  61.     }
  62.     public function setOrganisation(?Organisation $organisation): self
  63.     {
  64.         $this->organisation $organisation;
  65.         return $this;
  66.     }
  67.     public function getDetectedAt(): ?\DateTimeImmutable
  68.     {
  69.         return $this->detectedAt;
  70.     }
  71.     public function setDetectedAt(\DateTimeImmutable $detectedAt): static
  72.     {
  73.         $this->detectedAt $detectedAt;
  74.         return $this;
  75.     }
  76.     public function getLocation(): ?string
  77.     {
  78.         return $this->location;
  79.     }
  80.     public function setLocation(string $location): static
  81.     {
  82.         $this->location $location;
  83.         return $this;
  84.     }
  85.     public function getFragment(): ?string
  86.     {
  87.         return $this->fragment;
  88.     }
  89.     public function setFragment(string $fragment): static
  90.     {
  91.         $this->fragment $fragment;
  92.         return $this;
  93.     }
  94.     public function getNetwork(): ?string
  95.     {
  96.         return $this->network;
  97.     }
  98.     public function setNetwork(string $network): static
  99.     {
  100.         $this->network $network;
  101.         return $this;
  102.     }
  103.     public function getBin(): ?string
  104.     {
  105.         return $this->bin;
  106.     }
  107.     public function setBin(?string $bin): static
  108.     {
  109.         $this->bin $bin;
  110.         return $this;
  111.     }
  112.     public function getCcn(): ?string
  113.     {
  114.         return $this->ccn;
  115.     }
  116.     public function setCcn(string $ccn): static
  117.     {
  118.         $this->ccn $ccn;
  119.         return $this;
  120.     }
  121.     public function getCvv(): ?string
  122.     {
  123.         return $this->cvv;
  124.     }
  125.     public function setCvv(string $cvv): static
  126.     {
  127.         $this->cvv $cvv;
  128.         return $this;
  129.     }
  130.     public function getExpDate(): ?string
  131.     {
  132.         return $this->expDate;
  133.     }
  134.     public function setExpDate(?string $expDate): static
  135.     {
  136.         $this->expDate $expDate;
  137.         return $this;
  138.     }
  139.     public function getHash(): ?string
  140.     {
  141.         return $this->hash;
  142.     }
  143.     public function setHash(string $hash): static
  144.     {
  145.         $this->hash $hash;
  146.         return $this;
  147.     }
  148.     public function getStatus(): ?Status
  149.     {
  150.         return $this->status;
  151.     }
  152.     public function setStatus(?Status $status): self
  153.     {
  154.         $this->status $status;
  155.         return $this;
  156.     }
  157. }