src/Entity/TpvResult.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TpvResultRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Blameable\Traits\BlameableEntity;
  6. use Gedmo\Timestampable\Traits\TimestampableEntity;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. #[ORM\Entity(repositoryClassTpvResultRepository::class)]
  9. class TpvResult
  10. {
  11.     use BlameableEntity//Hook blameable behaviour. Updates createdBy, updatedBy fields
  12.     use TimestampableEntity//Hook timestampable behaviour. Updates createdAt, updatedAt fields 
  13.     
  14.     #[ORM\Id]
  15.     #[ORM\GeneratedValue(strategy"IDENTITY")]
  16.     #[ORM\Column]
  17.     private ?int $id null;
  18.     #[ORM\Column(length255)]
  19.     #[Assert\NotNull()]
  20.     #[Assert\Length(max255)]
  21.     private ?string $dsMerchantCode null;
  22.     #[ORM\Column(length255)]
  23.     #[Assert\NotNull()]
  24.     #[Assert\Length(max255)]
  25.     private ?string $dsTerminal null;
  26.     #[ORM\Column(length255)]
  27.     #[Assert\NotNull()]
  28.     #[Assert\Length(max255)]
  29.     private ?string $dsOrder null;
  30.     
  31.     #[ORM\Column()]
  32.     #[Assert\NotNull()]
  33.     #[Assert\Positive()]
  34.     private ?float $dsAmount null;
  35.     #[ORM\Column(length255)]
  36.     #[Assert\NotNull()]
  37.     #[Assert\Length(max255)]
  38.     private ?string $dsCurrency null;
  39.     #[ORM\Column(length255nullabletrue)]
  40.     #[Assert\NotNull()]
  41.     #[Assert\Length(max255)]
  42.     private ?string $dsAuthorisationCode null;
  43.     #[ORM\Column(length255nullabletrue)]
  44.     #[Assert\NotNull()]
  45.     #[Assert\Length(max255)]
  46.     private ?string $dsTransactionType null;
  47.     #[ORM\Column(length255nullabletrue)]
  48.     #[Assert\NotNull()]
  49.     #[Assert\Length(max255)]
  50.     private ?string $dsSecurePayment null;
  51.     #[ORM\Column(length255nullabletrue)]
  52.     #[Assert\NotNull()]
  53.     #[Assert\Length(max255)]
  54.     private ?string $dsLanguage null;
  55.     
  56.     #[ORM\Column(length255nullabletrue)]
  57.     #[Assert\NotNull()]
  58.     #[Assert\Length(max255)]
  59.     private ?string $dsMerchantData null;
  60.     
  61.     #[ORM\Column(length255nullabletrue)]
  62.     #[Assert\NotNull()]
  63.     #[Assert\Length(max255)]
  64.     private ?string $dsResponse null;
  65.     
  66.     #[ORM\Column(length255nullabletrue)]
  67.     #[Assert\NotNull()]
  68.     #[Assert\Length(max255)]
  69.     private ?string $dsMerchantIdentifier null;
  70.     
  71.     #[ORM\Column(length255nullabletrue)]
  72.     #[Assert\NotNull()]
  73.     #[Assert\Length(max255)]
  74.     private ?string $dsCardNumber null;
  75.     #[ORM\Column(length255nullabletrue)]
  76.     #[Assert\NotNull()]
  77.     #[Assert\Length(max255)]
  78.     private ?string $dsExpiryDate null;
  79.     #[ORM\Column(nullabletrue)]
  80.     private ?int $dsBrand null;
  81.     
  82.     public function getId(): ?int
  83.     {
  84.         return $this->id;
  85.     }
  86.     public function getDsMerchantCode(): ?string
  87.     {
  88.         return $this->dsMerchantCode;
  89.     }
  90.     public function setDsMerchantCode(string $dsMerchantCode): self
  91.     {
  92.         $this->dsMerchantCode $dsMerchantCode;
  93.         return $this;
  94.     }
  95.     public function getDsTerminal(): ?string
  96.     {
  97.         return $this->dsTerminal;
  98.     }
  99.     public function setDsTerminal(string $dsTerminal): self
  100.     {
  101.         $this->dsTerminal $dsTerminal;
  102.         return $this;
  103.     }
  104.     public function getDsOrder(): ?string
  105.     {
  106.         return $this->dsOrder;
  107.     }
  108.     public function setDsOrder(string $dsOrder): self
  109.     {
  110.         $this->dsOrder $dsOrder;
  111.         return $this;
  112.     }
  113.     public function getDsAmount(): ?float
  114.     {
  115.         return $this->dsAmount;
  116.     }
  117.     public function setDsAmount(float $dsAmount): self
  118.     {
  119.         $this->dsAmount $dsAmount;
  120.         return $this;
  121.     }
  122.     public function getDsCurrency(): ?string
  123.     {
  124.         return $this->dsCurrency;
  125.     }
  126.     public function setDsCurrency(string $dsCurrency): self
  127.     {
  128.         $this->dsCurrency $dsCurrency;
  129.         return $this;
  130.     }
  131.     public function getDsAuthorisationCode(): ?string
  132.     {
  133.         return $this->dsAuthorisationCode;
  134.     }
  135.     public function setDsAuthorisationCode(?string $dsAuthorisationCode): self
  136.     {
  137.         $this->dsAuthorisationCode $dsAuthorisationCode;
  138.         return $this;
  139.     }
  140.     public function getDsTransactionType(): ?string
  141.     {
  142.         return $this->dsTransactionType;
  143.     }
  144.     public function setDsTransactionType(?string $dsTransactionType): self
  145.     {
  146.         $this->dsTransactionType $dsTransactionType;
  147.         return $this;
  148.     }
  149.     public function getDsSecurePayment(): ?string
  150.     {
  151.         return $this->dsSecurePayment;
  152.     }
  153.     public function setDsSecurePayment(?string $dsSecurePayment): self
  154.     {
  155.         $this->dsSecurePayment $dsSecurePayment;
  156.         return $this;
  157.     }
  158.     public function getDsLanguage(): ?string
  159.     {
  160.         return $this->dsLanguage;
  161.     }
  162.     public function setDsLanguage(?string $dsLanguage): self
  163.     {
  164.         $this->dsLanguage $dsLanguage;
  165.         return $this;
  166.     }
  167.     public function getDsMerchantData(): ?string
  168.     {
  169.         return $this->dsMerchantData;
  170.     }
  171.     public function setDsMerchantData(?string $dsMerchantData): self
  172.     {
  173.         $this->dsMerchantData $dsMerchantData;
  174.         return $this;
  175.     }
  176.     public function getDsResponse(): ?string
  177.     {
  178.         return $this->dsResponse;
  179.     }
  180.     public function setDsResponse(?string $dsResponse): self
  181.     {
  182.         $this->dsResponse $dsResponse;
  183.         return $this;
  184.     }
  185.     public function getDsMerchantIdentifier(): ?string
  186.     {
  187.         return $this->dsMerchantIdentifier;
  188.     }
  189.     public function setDsMerchantIdentifier(?string $dsMerchantIdentifier): self
  190.     {
  191.         $this->dsMerchantIdentifier $dsMerchantIdentifier;
  192.         return $this;
  193.     }
  194.     public function getDsCardNumber(): ?string
  195.     {
  196.         return $this->dsCardNumber;
  197.     }
  198.     public function setDsCardNumber(?string $dsCardNumber): self
  199.     {
  200.         $this->dsCardNumber $dsCardNumber;
  201.         return $this;
  202.     }
  203.     public function getDsExpiryDate(): ?string
  204.     {
  205.         return $this->dsExpiryDate;
  206.     }
  207.     public function setDsExpiryDate(?string $dsExpiryDate): self
  208.     {
  209.         $this->dsExpiryDate $dsExpiryDate;
  210.         return $this;
  211.     }
  212.     
  213.     public function getDsBrand(): ?string
  214.     {
  215.         return $this->dsBrand;
  216.     }
  217.     public function setDsBrand(?string $dsBrand): self
  218.     {
  219.         $this->dsBrand $dsBrand;
  220.         return $this;
  221.     }
  222. }