src/Entity/Tva.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\TvaRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassTvaRepository::class)]
  6. class Tva
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(targetEntityUser::class, inversedBy'tva')]
  13.     private $client;
  14.     #[ORM\Column(name'tvaNumber'type'string'nullablefalse)]
  15.     private ?string $tvaNumber;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     /**
  21.      * @return mixed
  22.      */
  23.     public function getClient()
  24.     {
  25.         return $this->client;
  26.     }
  27.     /**
  28.      * @param mixed $client
  29.      */
  30.     public function setClient($client): void
  31.     {
  32.         $this->client $client;
  33.     }
  34.     /**
  35.      * @return string|null
  36.      */
  37.     public function getTvaNumber(): ?string
  38.     {
  39.         return $this->tvaNumber;
  40.     }
  41.     /**
  42.      * @param string|null $tvaNumber
  43.      */
  44.     public function setTvaNumber(?string $tvaNumber): void
  45.     {
  46.         $this->tvaNumber $tvaNumber;
  47.     }
  48. }