<?php
namespace App\Entity;
use App\Repository\FormClaimRepository;
use Doctrine\ORM\Mapping as ORM;
use Symfony\Component\Validator\Constraints as Assert;
/**
* @ORM\Entity(repositoryClass=FormClaimRepository::class)
*/
class FormClaim extends BaseForm
{
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $code;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $establishment;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $name;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $lastname;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $email;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $phone;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $department;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $province;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $district;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $address;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $good;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $order_number;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $amount;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $description;
/**
* @ORM\Column(type="string", nullable=true)
* @Assert\Length(max="255")
*/
private $type;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $detail;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $demand;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $actions;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
protected $answer_date;
/**
* @ORM\Column(type="boolean", nullable=true, options={"default":false})
*/
private $finished;
/**
* @ORM\Column(type="text", nullable=true)
*/
private $comment;
/**
* FormClaim constructor.
*/
public function __construct()
{
parent::__construct();
$this->answer_date = new \DateTime();
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): self
{
$this->code = $code;
return $this;
}
public function getEstablishment(): ?string
{
return $this->establishment;
}
public function setEstablishment(?string $establishment): self
{
$this->establishment = $establishment;
return $this;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getLastname(): ?string
{
return $this->lastname;
}
public function setLastname(?string $lastname): self
{
$this->lastname = $lastname;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getPhone(): ?string
{
return $this->phone;
}
public function setPhone(?string $phone): self
{
$this->phone = $phone;
return $this;
}
public function getDepartment(): ?string
{
return $this->department;
}
public function setDepartment(?string $department): self
{
$this->department = $department;
return $this;
}
public function getProvince(): ?string
{
return $this->province;
}
public function setProvince(?string $province): self
{
$this->province = $province;
return $this;
}
public function getDistrict(): ?string
{
return $this->district;
}
public function setDistrict(?string $district): self
{
$this->district = $district;
return $this;
}
public function getAddress(): ?string
{
return $this->address;
}
public function setAddress(?string $address): self
{
$this->address = $address;
return $this;
}
public function getGood(): ?string
{
return $this->good;
}
public function setGood(?string $good): self
{
$this->good = $good;
return $this;
}
public function getOrderNumber(): ?string
{
return $this->order_number;
}
public function setOrderNumber(?string $order_number): self
{
$this->order_number = $order_number;
return $this;
}
public function getAmount(): ?string
{
return $this->amount;
}
public function setAmount(?string $amount): self
{
$this->amount = $amount;
return $this;
}
public function getDescription(): ?string
{
return $this->description;
}
public function setDescription(?string $description): self
{
$this->description = $description;
return $this;
}
public function getType(): ?string
{
return $this->type;
}
public function setType(?string $type): self
{
$this->type = $type;
return $this;
}
public function getDetail(): ?string
{
return $this->detail;
}
public function setDetail(?string $detail): self
{
$this->detail = $detail;
return $this;
}
public function getDemand(): ?string
{
return $this->demand;
}
public function setDemand(?string $demand): self
{
$this->demand = $demand;
return $this;
}
public function getAnswerDate(): ?\DateTimeInterface
{
return $this->answer_date;
}
public function setAnswerDate(?\DateTimeInterface $answer_date): self
{
$this->answer_date = $answer_date;
return $this;
}
public function getFinished(): ?bool
{
return $this->finished;
}
public function setFinished(?bool $finished): self
{
$this->finished = $finished;
return $this;
}
public function getComment(): ?string
{
return $this->comment;
}
public function setComment(?string $comment): self
{
$this->comment = $comment;
return $this;
}
public function getActions(): ?string
{
return $this->actions;
}
public function setActions(?string $actions): self
{
$this->actions = $actions;
return $this;
}
}