src/Entity/Invoice.php line 11

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoiceRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use App\Entity\User;
  7. #[ORM\Entity(repositoryClassInvoiceRepository::class)]
  8. class Invoice
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column]
  13.     private ?int $id null;
  14.     #[ORM\ManyToOne(targetEntityUser::class)]
  15.     #[ORM\JoinColumn(nullablefalse)]
  16.     private ?User $user null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $customer null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $type null;
  21.     #[ORM\Column(typeTypes::DATETIME_MUTABLEnullabletrue)]
  22.     private ?\DateTimeInterface $createdAt null;
  23.     #[ORM\Column(length255nullabletrue)]
  24.     private ?string $address null;
  25.     #[ORM\Column(length255nullabletrue)]
  26.     private ?string $postalCode null;
  27.     #[ORM\Column(length255nullabletrue)]
  28.     private ?string $city null;
  29.     #[ORM\Column(nullabletrue)]
  30.     private ?int $priceHT null;
  31.     #[ORM\Column(nullabletrue)]
  32.     private ?int $TVA null;
  33.     #[ORM\Column(nullabletrue)]
  34.     private ?int $priceTTC null;
  35.     #[ORM\Column(length255nullabletrue)]
  36.     private ?string $paymentMethod null;
  37.     // Getters & Setters
  38.     public function getId(): ?int
  39.     {
  40.         return $this->id;
  41.     }
  42.     public function getUser(): ?User
  43.     {
  44.         return $this->user;
  45.     }
  46.     public function setUser(?User $user): self
  47.     {
  48.         $this->user $user;
  49.         return $this;
  50.     }
  51.     public function getCustomer(): ?string
  52.     {
  53.         return $this->customer;
  54.     }
  55.     public function setCustomer(?string $customer): self
  56.     {
  57.         $this->customer $customer;
  58.         return $this;
  59.     }
  60.     public function getType(): ?string
  61.     {
  62.         return $this->type;
  63.     }
  64.     public function setType(?string $type): self
  65.     {
  66.         $this->type $type;
  67.         return $this;
  68.     }
  69.     public function getCreatedAt(): ?\DateTimeInterface
  70.     {
  71.         return $this->createdAt;
  72.     }
  73.     public function setCreatedAt(?\DateTimeInterface $createdAt): self
  74.     {
  75.         $this->createdAt $createdAt;
  76.         return $this;
  77.     }
  78.     public function getAddress(): ?string
  79.     {
  80.         return $this->address;
  81.     }
  82.     public function setAddress(?string $address): self
  83.     {
  84.         $this->address $address;
  85.         return $this;
  86.     }
  87.     public function getPostalCode(): ?string
  88.     {
  89.         return $this->postalCode;
  90.     }
  91.     public function setPostalCode(?string $postalCode): self
  92.     {
  93.         $this->postalCode $postalCode;
  94.         return $this;
  95.     }
  96.     public function getCity(): ?string
  97.     {
  98.         return $this->city;
  99.     }
  100.     public function setCity(?string $city): self
  101.     {
  102.         $this->city $city;
  103.         return $this;
  104.     }
  105.     public function getPriceHT(): ?int
  106.     {
  107.         return $this->priceHT;
  108.     }
  109.     public function setPriceHT(?int $priceHT): self
  110.     {
  111.         $this->priceHT $priceHT;
  112.         return $this;
  113.     }
  114.     public function getTVA(): ?int
  115.     {
  116.         return $this->TVA;
  117.     }
  118.     public function setTVA(?int $TVA): self
  119.     {
  120.         $this->TVA $TVA;
  121.         return $this;
  122.     }
  123.     public function getPriceTTC(): ?int
  124.     {
  125.         return $this->priceTTC;
  126.     }
  127.     public function setPriceTTC(?int $priceTTC): self
  128.     {
  129.         $this->priceTTC $priceTTC;
  130.         return $this;
  131.     }
  132.     public function getPaymentMethod(): ?string
  133.     {
  134.         return $this->paymentMethod;
  135.     }
  136.     public function setPaymentMethod(?string $paymentMethod): self
  137.     {
  138.         $this->paymentMethod $paymentMethod;
  139.         return $this;
  140.     }
  141. }