<?phpnamespace App\Entity;use App\Repository\RequestBatchRepository;use Gedmo\Timestampable\Traits\TimestampableEntity;use Doctrine\ORM\Mapping as ORM;/** * RequestBatch * */#[ORM\Entity(repositoryClass: RequestBatchRepository::class)]#[ORM\Table(name: '`request_batch`')]class RequestBatch{ use TimestampableEntity; const STATUS_PROCESS = 1; const STATUS_CLOSED = 2; const STATUS_MIGRATED = 3; #[ORM\Id] #[ORM\GeneratedValue(strategy:"AUTO")] #[ORM\Column(name:"id", type:"integer")] private $id; #[ORM\Column(name:"status", type:"integer")] private $status = self::STATUS_PROCESS; #[ORM\Column(name:"label", type:"string", length:255)] private $label; #[ORM\ManyToOne(targetEntity:"App\Entity\User")] private $user; #[ORM\Column(name:"process", type:"string", length:255, nullable:true)] private $process; #[ORM\Column(name:"batch_token", type:"string", length:255)] private $batchToken; /** * Get id * * @return int */ public function getId() { return $this->id; } /** * Set status * * @param integer $status * * @return RequestBatch */ public function setStatus($status) { $this->status = $status; return $this; } /** * Get status * * @return int */ public function getStatus() { return $this->status; } /** * Set label * * @param string $label * * @return RequestBatch */ public function setLabel($label) { $this->label = $label; return $this; } /** * Get label * * @return string */ public function getLabel() { return $this->label; } /** * Set user * * @param User $user * * @return RequestBatch */ public function setUser($user) { $this->user = $user; return $this; } /** * Get user * * @return User */ public function getUser() { return $this->user; } /** * Set process * * @param string $process * * @return RequestBatch */ public function setProcess($process) { $this->process = $process; return $this; } /** * Get process * * @return string */ public function getProcess() { return $this->process; } /** * @return string */ public function getBatchToken() { return $this->batchToken; } /** * @param string $batchToken */ public function setBatchToken($batchToken) { $this->batchToken = $batchToken; }}