<?php
declare(strict_types=1);
namespace App\Infrastructure\Doctrine\Entity;
use App\Domain\Common\Entity\IzOrderRepresentative;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass="App\Infrastructure\Doctrine\Repository\DoctrineIzOrderRepresentativeRepository")
*/
class DoctrineIzOrderRepresentative implements IzOrderRepresentative
{
/**
* @ORM\Id
* @ORM\Column(type="string", length=16, unique=true)
*/
private string $codeRepresentant = '';
/**
* @ORM\Column(type="string", length=191, nullable=true)
*/
private ?string $nom = null;
public function __toString(): string
{
return (string) $this->getNom();
}
public function getCodeRepresentant(): string
{
return $this->codeRepresentant;
}
public function setCodeRepresentant(string $codeRepresentant): void
{
$this->codeRepresentant = $codeRepresentant;
}
public function getNom(): ?string
{
return $this->nom;
}
public function setNom(?string $nom): void
{
$this->nom = $nom;
}
}