src/Entity/Invoices.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\InvoicesRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassInvoicesRepository::class)]
  6. class Invoices
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'invoice')]
  13.     private $user;
  14.     #[ORM\Column(name'invoice'type'string'nullablefalse)]
  15.     private ?string $invoice;
  16.     #[ORM\Column(name'invoiceNumber'type'integer'nullablefalse)]
  17.     private ?int $invoiceNumber;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     /**
  23.      * @return int|null
  24.      */
  25.     public function getInvoiceNumber(): ?int
  26.     {
  27.         return $this->invoiceNumber;
  28.     }
  29.     /**
  30.      * @param int|null $invoiceNumber
  31.      */
  32.     public function setInvoiceNumber(?int $invoiceNumber): void
  33.     {
  34.         $this->invoiceNumber $invoiceNumber;
  35.     }
  36.     /**
  37.      * @return mixed
  38.      */
  39.     public function getUser()
  40.     {
  41.         return $this->user;
  42.     }
  43.     /**
  44.      * @param mixed $user
  45.      */
  46.     public function setUser($user): void
  47.     {
  48.         $this->user $user;
  49.     }
  50.     /**
  51.      * @return string|null
  52.      */
  53.     public function getInvoice(): ?string
  54.     {
  55.         return $this->invoice;
  56.     }
  57.     /**
  58.      * @param string|null $invoice
  59.      */
  60.     public function setInvoice(?string $invoice): void
  61.     {
  62.         $this->invoice $invoice;
  63.     }
  64. }