<?php
declare(strict_types=1);
namespace App\Entity\System;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Table(name="customer_form_answers")
*
* @ORM\Entity(repositoryClass="App\Repository\System\CustomerFormAnswersRepository")
*/
class CustomerFormAnswers
{
/**
* @ORM\Id
*
* @ORM\GeneratedValue(strategy="AUTO")
*
* @ORM\Column(type="integer", name="id")
*/
private int $id;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\System\FormAnswers")
*
* @ORM\JoinColumn(nullable=false, name="answer_id", referencedColumnName="id")
*/
private FormAnswers $answerId;
/**
* @ORM\ManyToOne(targetEntity="App\Entity\System\Customer")
*
* @ORM\JoinColumn(nullable=false, name="customer_id", referencedColumnName="id_customer")
*/
private Customer $customer;
/**
* @ORM\Column(type="string", nullable=true)
*/
private ?string $value;
public function getId(): int
{
return $this->id;
}
public function setId(int $id): CustomerFormAnswers
{
$this->id = $id;
return $this;
}
public function getAnswer(): FormAnswers
{
return $this->answerId;
}
public function setAnswerId(FormAnswers $answer): CustomerFormAnswers
{
$this->answerId = $answer;
return $this;
}
public function getCustomer(): Customer
{
return $this->customer;
}
public function setCustomer(Customer $customer): CustomerFormAnswers
{
$this->customer = $customer;
return $this;
}
public function getValue(): ?string
{
return $this->value;
}
public function setValue(?string $value): CustomerFormAnswers
{
$this->value = $value;
return $this;
}
}