<?php
namespace App\Entity;
use App\Repository\RequestModificationRepository;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\Common\Collections\Collection;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=RequestModificationRepository::class)
*/
class RequestModification
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="text")
*/
private $text;
/**
* @ORM\Column(type="datetime")
*/
private $createdAt;
/**
* @ORM\Column(type="boolean")
*/
private $deleted = false;
/**
* @ORM\Column(type="boolean")
*/
private $isRead = false;
/**
* @ORM\ManyToOne(targetEntity=Users::class, inversedBy="requestModifications")
* @ORM\JoinColumn(nullable=false)
*/
private $createdBy;
/**
* @ORM\ManyToOne(targetEntity=Users::class, inversedBy="requestModificationsUser")
*/
private $responsable;
/**
* @ORM\ManyToOne(targetEntity=Establishments::class, inversedBy="requestModifications")
*/
private $company;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $email;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $title;
/**
* @ORM\Column(type="datetime", nullable=true)
*/
private $isReadAt = null;
/**
* @ORM\ManyToOne(targetEntity=RequestModificationStatus::class, inversedBy="requestModifications")
*/
private $RequestModificationStatus;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $deliveryAddress;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $tvaNumber;
/**
* @ORM\Column(type="integer")
*/
private $type;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private $companyName;
/**
* @ORM\ManyToOne(targetEntity=TVA::class, inversedBy="requestModifications")
*/
private $tvaSubject;
public function __construct()
{
$this->createdAt = new \DateTime();
$this->createdBy = new ArrayCollection();
$this->responsable = new ArrayCollection();
$this->status = new ArrayCollection();
}
public function getId(): ?int
{
return $this->id;
}
public function getText()
{
return $this->text;
}
public function setText($text): self
{
$this->text = $text;
return $this;
}
public function getCreatedAt(): ?\DateTimeInterface
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeInterface $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
public function getDeleted(): ?bool
{
return $this->deleted;
}
public function setDeleted(bool $deleted): self
{
$this->deleted = $deleted;
return $this;
}
public function getIsRead(): ?bool
{
return $this->isRead;
}
public function setIsRead(bool $isRead): self
{
$this->isRead = $isRead;
return $this;
}
public function setCreatedBy(?Users $createdBy): self
{
$this->createdBy = $createdBy;
return $this;
}
public function getCreatedBy(): ?Users
{
return $this->createdBy;
}
public function setResponsable(?Users $responsable): self
{
$this->responsable = $responsable;
return $this;
}
public function getResponsable(): ?Users
{
return $this->responsable;
}
public function getCompany(): ?Establishments
{
return $this->company;
}
public function setCompany(?Establishments $company): self
{
$this->company = $company;
return $this;
}
public function getIsReadAt(): ?\DateTimeInterface
{
return $this->isReadAt;
}
public function setIsReadAt(?\DateTimeInterface $isReadAt): self
{
$this->isReadAt = $isReadAt;
return $this;
}
public function getRequestModificationStatus(): ?RequestModificationStatus
{
return $this->RequestModificationStatus;
}
public function setRequestModificationStatus(?RequestModificationStatus $RequestModificationStatus): self
{
$this->RequestModificationStatus = $RequestModificationStatus;
return $this;
}
public function getEmail(): ?string
{
return $this->email;
}
public function setEmail(?string $email): self
{
$this->email = $email;
return $this;
}
public function getTitle(): ?string
{
return $this->title;
}
public function setTitle(?string $title): self
{
$this->title = $title;
return $this;
}
public function getText1(): ?string
{
return $this->text1;
}
public function getDeliveryAddress(): ?string
{
return $this->deliveryAddress;
}
public function setDeliveryAddress(?string $deliveryAddress): self
{
$this->deliveryAddress = $deliveryAddress;
return $this;
}
public function getTvaNumber(): ?string
{
return $this->tvaNumber;
}
public function setTvaNumber(?string $tvaNumber): self
{
$this->tvaNumber = $tvaNumber;
return $this;
}
public function getType(): ?int
{
return $this->type;
}
public function setType(int $type): self
{
$this->type = $type;
return $this;
}
public function getCompanyName(): ?string
{
return $this->companyName;
}
public function setCompanyName(?string $companyName): self
{
$this->companyName = $companyName;
return $this;
}
public function getTvaSubject(): ?TVA
{
return $this->tvaSubject;
}
public function setTvaSubject(?TVA $tvaSubject): self
{
$this->tvaSubject = $tvaSubject;
return $this;
}
}