src/Entity/CodeB2BClient.php line 10
<?phpnamespace App\Entity;use App\Entity\Customer\Customer;use App\Repository\CodeB2BClientRepository;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: CodeB2BClientRepository::class)]class CodeB2BClient{#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(length: 255)]private ?string $code = null;#[ORM\ManyToOne(inversedBy: 'codeB2BClients')]private ?CodeEvent $codeEvent = null;#[ORM\Column]private ?bool $hasBeenUsed = false;#[ORM\Column(options: ['default' => false])]private bool $isFinal = false;/** Customer who used this code at registration (optional). */#[ORM\ManyToOne(targetEntity: Customer::class)]#[ORM\JoinColumn(nullable: true, onDelete: 'SET NULL')]private ?Customer $customer = null;public function __construct(){}public function getId(): ?int{return $this->id;}public function getCode(): ?string{return $this->code;}public function setCode(string $code): self{$this->code = $code;return $this;}public function getCodeEvent(): ?CodeEvent{return $this->codeEvent;}public function setCodeEvent(?CodeEvent $codeEvent): self{$this->codeEvent = $codeEvent;return $this;}public function isHasBeenUsed(): ?bool{return $this->hasBeenUsed;}public function setHasBeenUsed(bool $hasBeenUsed): self{$this->hasBeenUsed = $hasBeenUsed;return $this;}public function isFinal(): bool{return $this->isFinal;}public function setIsFinal(bool $isFinal): self{$this->isFinal = $isFinal;return $this;}public function getCustomer(): ?Customer{return $this->customer;}public function setCustomer(?Customer $customer): self{$this->customer = $customer;return $this;}}