src/Entity/Transaction.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TransactionRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassTransactionRepository::class)]
  7. class Transaction implements EntityInterface
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column]
  14.     private ?int $order_id null;
  15.     #[ORM\Column(length255)]
  16.     private ?string $session null;
  17.     #[ORM\Column]
  18.     private float $amount 0;
  19.     #[ORM\Column(typeTypes::TEXT)]
  20.     private ?string $post null;
  21.     #[ORM\Column(typeTypes::TEXT)]
  22.     private ?string $input null;
  23.     #[ORM\Column]
  24.     private ?bool $confirmed null;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getOrder(): ?int
  30.     {
  31.         return $this->order_id;
  32.     }
  33.     public function setOrder($order): self
  34.     {
  35.         $this->order_id $order;
  36.         return $this;
  37.     }
  38.     public function getSession(): ?string
  39.     {
  40.         return $this->session;
  41.     }
  42.     public function setSession(string $session): self
  43.     {
  44.         $this->session $session;
  45.         return $this;
  46.     }
  47.     public function getAmount(): ?float
  48.     {
  49.         return $this->amount;
  50.     }
  51.     public function setAmount(float $amount): self
  52.     {
  53.         $this->amount $amount;
  54.         return $this;
  55.     }
  56.     public function getPost(): ?string
  57.     {
  58.         return $this->post;
  59.     }
  60.     public function setPost(string $post): self
  61.     {
  62.         $this->post $post;
  63.         return $this;
  64.     }
  65.     public function getInput(): ?string
  66.     {
  67.         return $this->input;
  68.     }
  69.     public function setInput(string $input): self
  70.     {
  71.         $this->input $input;
  72.         return $this;
  73.     }
  74.     public function isConfirmed(): ?bool
  75.     {
  76.         return $this->confirmed;
  77.     }
  78.     public function setConfirmed(bool $confirmed): self
  79.     {
  80.         $this->confirmed $confirmed;
  81.         return $this;
  82.     }
  83. }