src/Entity/CommandeIpAcheteur.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CommandeIpAcheteurRepository;
  4. use Doctrine\DBAL\Types\Types;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassCommandeIpAcheteurRepository::class)]
  7. class CommandeIpAcheteur
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column]
  12.     private ?int $id null;
  13.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  14.     private ?string $text null;
  15.     #[ORM\Column(typeTypes::TEXTnullabletrue)]
  16.     private ?string $note null;
  17.     #[ORM\ManyToOne(inversedBy'commandeIpAcheteurs')]
  18.     #[ORM\JoinColumn(nullablefalse)]
  19.     private ?Acheteur $acheteur null;
  20.     #[ORM\ManyToOne(inversedBy'commandeIpAcheteurs')]
  21.     #[ORM\JoinColumn(nullablefalse)]
  22.     private ?CommandeIps $commandeIp null;
  23.     public function getId(): ?int
  24.     {
  25.         return $this->id;
  26.     }
  27.     public function getText(): ?string
  28.     {
  29.         return $this->text;
  30.     }
  31.     public function setText(?string $text): static
  32.     {
  33.         $this->text $text;
  34.         return $this;
  35.     }
  36.     public function getNote(): ?string
  37.     {
  38.         return $this->note;
  39.     }
  40.     public function setNote(?string $note): static
  41.     {
  42.         $this->note $note;
  43.         return $this;
  44.     }
  45.     public function getAcheteur(): ?Acheteur
  46.     {
  47.         return $this->acheteur;
  48.     }
  49.     public function setAcheteur(?Acheteur $acheteur): static
  50.     {
  51.         $this->acheteur $acheteur;
  52.         return $this;
  53.     }
  54.     public function getCommandeIp(): ?CommandeIps
  55.     {
  56.         return $this->commandeIp;
  57.     }
  58.     public function setCommandeIp(?CommandeIps $commandeIp): static
  59.     {
  60.         $this->commandeIp $commandeIp;
  61.         return $this;
  62.     }
  63. }