src/Entity/Invoice.php line 11
<?phpnamespace App\Entity;use App\Repository\InvoiceRepository;use Doctrine\DBAL\Types\Types;use Doctrine\ORM\Mapping as ORM;use App\Entity\User;#[ORM\Entity(repositoryClass: InvoiceRepository::class)]class Invoice{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\ManyToOne(targetEntity: User::class)]#[ORM\JoinColumn(nullable: false)]private ?User $user = null;#[ORM\Column(length: 255, nullable: true)]private ?string $customer = null;#[ORM\Column(length: 255, nullable: true)]private ?string $type = null;#[ORM\Column(type: Types::DATETIME_MUTABLE, nullable: true)]private ?\DateTimeInterface $createdAt = null;#[ORM\Column(length: 255, nullable: true)]private ?string $address = null;#[ORM\Column(length: 255, nullable: true)]private ?string $postalCode = null;#[ORM\Column(length: 255, nullable: true)]private ?string $city = null;#[ORM\Column(nullable: true)]private ?int $priceHT = null;#[ORM\Column(nullable: true)]private ?int $TVA = null;#[ORM\Column(nullable: true)]private ?int $priceTTC = null;#[ORM\Column(length: 255, nullable: true)]private ?string $paymentMethod = null;// Getters & Setterspublic function getId(): ?int{return $this->id;}public function getUser(): ?User{return $this->user;}public function setUser(?User $user): self{$this->user = $user;return $this;}public function getCustomer(): ?string{return $this->customer;}public function setCustomer(?string $customer): self{$this->customer = $customer;return $this;}public function getType(): ?string{return $this->type;}public function setType(?string $type): self{$this->type = $type;return $this;}public function getCreatedAt(): ?\DateTimeInterface{return $this->createdAt;}public function setCreatedAt(?\DateTimeInterface $createdAt): self{$this->createdAt = $createdAt;return $this;}public function getAddress(): ?string{return $this->address;}public function setAddress(?string $address): self{$this->address = $address;return $this;}public function getPostalCode(): ?string{return $this->postalCode;}public function setPostalCode(?string $postalCode): self{$this->postalCode = $postalCode;return $this;}public function getCity(): ?string{return $this->city;}public function setCity(?string $city): self{$this->city = $city;return $this;}public function getPriceHT(): ?int{return $this->priceHT;}public function setPriceHT(?int $priceHT): self{$this->priceHT = $priceHT;return $this;}public function getTVA(): ?int{return $this->TVA;}public function setTVA(?int $TVA): self{$this->TVA = $TVA;return $this;}public function getPriceTTC(): ?int{return $this->priceTTC;}public function setPriceTTC(?int $priceTTC): self{$this->priceTTC = $priceTTC;return $this;}public function getPaymentMethod(): ?string{return $this->paymentMethod;}public function setPaymentMethod(?string $paymentMethod): self{$this->paymentMethod = $paymentMethod;return $this;}}