Current path: home/webdevt/cryptoimpot.fr/module/Application/src/Entity/
?? Go up: /home/webdevt/cryptoimpot.fr/module/Application/src
<?php
namespace Application\Entity;
use Doctrine\ORM\Mapping as ORM;
use Doctrine\Common\Collections\ArrayCollection;
/**
* Un statut de document
*
* @ORM\Entity
* @ORM\Table(name="report")
* @property int $id
* @property string $token
*/
class Report {
/**
* @ORM\Id
* @ORM\Column(type="integer", name="id");
* @ORM\GeneratedValue(strategy="AUTO")
*/
public $id;
/**
* @var \User\Entity\User $user
*
* @ORM\ManyToOne(targetEntity="\User\Entity\User", inversedBy="reports", cascade={"persist", "merge"})
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="user_id", referencedColumnName="id")
* })
*/
public $user;
/**
* @ORM\Column(type="string")
*/
public $year;
/**
* @ORM\Column(type="string")
*/
public $path;
/**
* @ORM\Column(type="string", name="path_brouillon")
*/
public $pathBrouillon;
/**
* @ORM\Column(type="string", name="order_id")
*/
public $orderId;
/**
* @ORM\Column(type="datetime", name="created_date")
*/
public $createdDate;
/**
* @ORM\Column(type="boolean")
*/
public $status;
public function getId() {
return $this->id;
}
public function setId($id) {
$this->id = $id;
}
public function getStatus() {
return $this->status;
}
public function setStatus($status) {
$this->status = $status;
}
function getUser(): \User\Entity\User {
return $this->user;
}
function getYear() {
return $this->year;
}
function setUser(\User\Entity\User $user) {
$this->user = $user;
}
function setYear($year) {
$this->year = $year;
}
function getPath() {
return $this->path;
}
function setPath($path) {
$this->path = $path;
}
function getPathBrouillon() {
return $this->pathBrouillon;
}
function setPathBrouillon($pathBrouillon) {
$this->pathBrouillon = $pathBrouillon;
}
function getCreatedDate() {
return $this->createdDate;
}
function setCreatedDate($createdDate) {
$this->createdDate = $createdDate;
}
public function isValidated() {
return $this->status === true;
}
public function isNotValidated() {
return $this->status === false;
}
public function getOrderId() {
return $this->orderId;
}
public function setOrderId($orderId) {
$this->orderId = $orderId;
}
}