<?php
namespace App\Entity;
use App\Repository\CommandeIpAcheteurRepository;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: CommandeIpAcheteurRepository::class)]
class CommandeIpAcheteur
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $text = null;
#[ORM\Column(type: Types::TEXT, nullable: true)]
private ?string $note = null;
#[ORM\ManyToOne(inversedBy: 'commandeIpAcheteurs')]
#[ORM\JoinColumn(nullable: false)]
private ?Acheteur $acheteur = null;
#[ORM\ManyToOne(inversedBy: 'commandeIpAcheteurs')]
#[ORM\JoinColumn(nullable: false)]
private ?CommandeIps $commandeIp = null;
public function getId(): ?int
{
return $this->id;
}
public function getText(): ?string
{
return $this->text;
}
public function setText(?string $text): static
{
$this->text = $text;
return $this;
}
public function getNote(): ?string
{
return $this->note;
}
public function setNote(?string $note): static
{
$this->note = $note;
return $this;
}
public function getAcheteur(): ?Acheteur
{
return $this->acheteur;
}
public function setAcheteur(?Acheteur $acheteur): static
{
$this->acheteur = $acheteur;
return $this;
}
public function getCommandeIp(): ?CommandeIps
{
return $this->commandeIp;
}
public function setCommandeIp(?CommandeIps $commandeIp): static
{
$this->commandeIp = $commandeIp;
return $this;
}
}