<?php
namespace App\Entity;
use App\Repository\Actuv2ElectronicInvoiceVoteRepository;
use DateTimeInterface;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: Actuv2ElectronicInvoiceVoteRepository::class)]
class Actuv2ElectronicInvoiceVote
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(name: 'date', type: 'date', nullable: true, options: ['comment' => 'période'])]
private $date;
/**
* @var string
*
*/
#[ORM\Column(name: 'ip', type: 'string', length: 50, nullable: false)]
private $ip = '';
#[ORM\ManyToOne(targetEntity: Actuv2ElectronicInvoiceAnswer::class, inversedBy: 'actuv2ElectronicInvoiceVotes')]
private $answer;
#[ORM\ManyToOne(targetEntity: Actuv2ElectronicInvoice::class, inversedBy: 'actuv2ElectronicInvoiceVotes')]
private $electronicInvoice;
public function getId(): ?int
{
return $this->id;
}
public function getDate(): ?DateTimeInterface
{
return $this->date;
}
public function setDate(?DateTimeInterface $date): self
{
$this->date = $date;
return $this;
}
public function getIp(): ?string
{
return $this->ip;
}
public function setIp(string $ip): self
{
$this->ip = $ip;
return $this;
}
public function getAnswer(): ?Actuv2ElectronicInvoiceAnswer
{
return $this->answer;
}
public function setAnswer(?Actuv2ElectronicInvoiceAnswer $answer): self
{
$this->answer = $answer;
return $this;
}
public function getElectronicInvoice(): ?Actuv2ElectronicInvoice
{
return $this->electronicInvoice;
}
public function setElectronicInvoice(?Actuv2ElectronicInvoice $electronicInvoice): self
{
$this->electronicInvoice = $electronicInvoice;
return $this;
}
}