<?php
namespace App\Entity;
use App\Entity\Common\SoftDeletableEntityTrait;
use App\Entity\Common\StatefulEntityTrait;
use App\Entity\Common\TimestampedEntityTrait;
use Doctrine\ORM\Mapping\UniqueConstraint;
use DateTime;
use Doctrine\ORM\Mapping as ORM;
use Gedmo\Mapping\Annotation as Gedmo;
use Evence\Bundle\SoftDeleteableExtensionBundle\Mapping\Annotation as Evence;
/**
* Class CompanyVisaApplicationDocument
*
* @ORM\Entity(repositoryClass="App\Repository\CompanyVisaApplicationDocumentRepository")
* @ORM\Table(indexes={
* @ORM\Index(name="IDX_updated_at", columns={"updated_at"}),
* @ORM\Index(name="IDX_deleted_at", columns={"deleted_at"}),
* @ORM\Index(name="IDX_is_active", columns={"is_active"})
* }
* )
* @Gedmo\SoftDeleteable(fieldName="deletedAt")
*/
class CompanyVisaApplicationDocument
{
use SoftDeletableEntityTrait, StatefulEntityTrait, TimestampedEntityTrait;
/**
* @var integer
*
* @ORM\Id()
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\ManyToOne(targetEntity="CompanyVisaApplication")
* @ORM\JoinColumn(name="visa_application_id", referencedColumnName="id", onDelete="CASCADE")
*/
private $visaApplication;
/**
* @ORM\ManyToOne(targetEntity="StaFileType")
* @ORM\JoinColumn(name="file_type", referencedColumnName="code", onDelete="CASCADE")
*/
private $fileType;
/**
* @var string
*
* @ORM\Column(length=100)
*/
private $fileName;
/**
* @var string
*
* @ORM\Column(length=10)
*/
private $extension;
/**
* @return int
*/
public function getId(): int
{
return $this->id;
}
/**
* @param int $id
*/
public function setId(int $id): void
{
$this->id = $id;
}
/**
* @return mixed
*/
public function getVisaApplication()
{
return $this->visaApplication;
}
/**
* @param mixed $visaApplication
*/
public function setVisaApplication($visaApplication): void
{
$this->visaApplication = $visaApplication;
}
/**
* @return string
*/
public function getFileName(): string
{
return $this->fileName;
}
/**
* @param string $fileName
*/
public function setFileName(string $fileName): void
{
$this->fileName = $fileName;
}
/**
* @return mixed
*/
public function getFileType()
{
return $this->fileType;
}
/**
* @param mixed $fileType
*/
public function setFileType($fileType): void
{
$this->fileType = $fileType;
}
public function getExtension(): string
{
return $this->extension;
}
public function setExtension(string $extension): CompanyVisaApplicationDocument
{
$this->extension = $extension;
return $this;
}
}