src/Infrastructure/Doctrine/Entity/DoctrineIzOrderRepresentative.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Infrastructure\Doctrine\Entity;
  4. use App\Domain\Common\Entity\IzOrderRepresentative;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass="App\Infrastructure\Doctrine\Repository\DoctrineIzOrderRepresentativeRepository")
  8.  */
  9. class DoctrineIzOrderRepresentative implements IzOrderRepresentative
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\Column(type="string", length=16, unique=true)
  14.      */
  15.     private string $codeRepresentant '';
  16.     /**
  17.      * @ORM\Column(type="string", length=191, nullable=true)
  18.      */
  19.     private ?string $nom null;
  20.     public function __toString(): string
  21.     {
  22.         return (string) $this->getNom();
  23.     }
  24.     public function getCodeRepresentant(): string
  25.     {
  26.         return $this->codeRepresentant;
  27.     }
  28.     public function setCodeRepresentant(string $codeRepresentant): void
  29.     {
  30.         $this->codeRepresentant $codeRepresentant;
  31.     }
  32.     public function getNom(): ?string
  33.     {
  34.         return $this->nom;
  35.     }
  36.     public function setNom(?string $nom): void
  37.     {
  38.         $this->nom $nom;
  39.     }
  40. }