src/Entity/Actuv2ElectronicInvoiceVote.php line 10

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\Actuv2ElectronicInvoiceVoteRepository;
  4. use DateTimeInterface;
  5. use Doctrine\ORM\Mapping as ORM;
  6. #[ORM\Entity(repositoryClassActuv2ElectronicInvoiceVoteRepository::class)]
  7. class Actuv2ElectronicInvoiceVote
  8. {
  9.     #[ORM\Id]
  10.     #[ORM\GeneratedValue]
  11.     #[ORM\Column(type'integer')]
  12.     private $id;
  13.     #[ORM\Column(name'date'type'date'nullabletrueoptions: ['comment' => 'pĂ©riode'])]
  14.     private $date;
  15.     /**
  16.      * @var string
  17.      *
  18.      */
  19.     #[ORM\Column(name'ip'type'string'length50nullablefalse)]
  20.     private $ip '';
  21.     #[ORM\ManyToOne(targetEntityActuv2ElectronicInvoiceAnswer::class, inversedBy'actuv2ElectronicInvoiceVotes')]
  22.     private $answer;
  23.     #[ORM\ManyToOne(targetEntityActuv2ElectronicInvoice::class, inversedBy'actuv2ElectronicInvoiceVotes')]
  24.     private $electronicInvoice;
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getDate(): ?DateTimeInterface
  30.     {
  31.         return $this->date;
  32.     }
  33.     public function setDate(?DateTimeInterface $date): self
  34.     {
  35.         $this->date $date;
  36.         return $this;
  37.     }
  38.     public function getIp(): ?string
  39.     {
  40.         return $this->ip;
  41.     }
  42.     public function setIp(string $ip): self
  43.     {
  44.         $this->ip $ip;
  45.         return $this;
  46.     }
  47.     public function getAnswer(): ?Actuv2ElectronicInvoiceAnswer
  48.     {
  49.         return $this->answer;
  50.     }
  51.     public function setAnswer(?Actuv2ElectronicInvoiceAnswer $answer): self
  52.     {
  53.         $this->answer $answer;
  54.         return $this;
  55.     }
  56.     public function getElectronicInvoice(): ?Actuv2ElectronicInvoice
  57.     {
  58.         return $this->electronicInvoice;
  59.     }
  60.     public function setElectronicInvoice(?Actuv2ElectronicInvoice $electronicInvoice): self
  61.     {
  62.         $this->electronicInvoice $electronicInvoice;
  63.         return $this;
  64.     }
  65. }