V-Beta-1.0.0
Vision is out of alpha !
This commit is contained in:
128
src/Entity/Criminal.php
Normal file
128
src/Entity/Criminal.php
Normal file
@@ -0,0 +1,128 @@
|
||||
<?php
|
||||
|
||||
namespace App\Entity;
|
||||
|
||||
use App\Entity\Document;
|
||||
use Doctrine\ORM\Mapping as ORM;
|
||||
use App\Repository\CriminalRepository;
|
||||
use Gedmo\Mapping\Annotation as Gedmo;
|
||||
|
||||
/**
|
||||
* @ORM\Entity(repositoryClass=CriminalRepository::class)
|
||||
*/
|
||||
class Criminal extends Document
|
||||
{
|
||||
/**
|
||||
* @ORM\ManyToOne(targetEntity=Directory::class, inversedBy="criminals")
|
||||
* @ORM\JoinColumn(nullable=false)
|
||||
*/
|
||||
private $directory;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="string", length=255)
|
||||
* @Gedmo\Versioned
|
||||
*/
|
||||
private $article;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="float", nullable=true)
|
||||
* @Gedmo\Versioned
|
||||
*/
|
||||
private $amountMoney;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="integer", nullable=true)
|
||||
* @Gedmo\Versioned
|
||||
*/
|
||||
private $amountTime;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
* @Gedmo\Versioned
|
||||
*/
|
||||
private $content;
|
||||
|
||||
/**
|
||||
* @ORM\Column(type="text", nullable=true)
|
||||
* @Gedmo\Versioned
|
||||
*/
|
||||
private $accessorySentence;
|
||||
|
||||
public function __construct(User $user)
|
||||
{
|
||||
parent::__construct($user);
|
||||
$this->setNeedLegalAccess(true);
|
||||
}
|
||||
|
||||
public function getDirectory(): ?Directory
|
||||
{
|
||||
return $this->directory;
|
||||
}
|
||||
|
||||
public function setDirectory(?Directory $directory): self
|
||||
{
|
||||
$this->directory = $directory;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getArticle(): ?string
|
||||
{
|
||||
return $this->article;
|
||||
}
|
||||
|
||||
public function setArticle(string $article): self
|
||||
{
|
||||
$this->article = $article;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAmountMoney(): ?float
|
||||
{
|
||||
return $this->amountMoney;
|
||||
}
|
||||
|
||||
public function setAmountMoney(?float $amountMoney): self
|
||||
{
|
||||
$this->amountMoney = $amountMoney;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAmountTime(): ?int
|
||||
{
|
||||
return $this->amountTime;
|
||||
}
|
||||
|
||||
public function setAmountTime(?int $amountTime): self
|
||||
{
|
||||
$this->amountTime = $amountTime;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getContent(): ?string
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
public function setContent(?string $content): self
|
||||
{
|
||||
$this->content = $content;
|
||||
|
||||
return $this;
|
||||
}
|
||||
|
||||
public function getAccessorySentence(): ?string
|
||||
{
|
||||
return $this->accessorySentence;
|
||||
}
|
||||
|
||||
public function setAccessorySentence(?string $accessorySentence): self
|
||||
{
|
||||
$this->accessorySentence = $accessorySentence;
|
||||
|
||||
return $this;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user