src/Entity/RequestBatch.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RequestBatchRepository;
  4. use Gedmo\Timestampable\Traits\TimestampableEntity;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * RequestBatch
  8.  *
  9.  */
  10. #[ORM\Entity(repositoryClassRequestBatchRepository::class)]
  11. #[ORM\Table(name'`request_batch`')]
  12. class RequestBatch
  13. {
  14.     use TimestampableEntity;
  15.     const STATUS_PROCESS 1;
  16.     const STATUS_CLOSED 2;
  17.     const STATUS_MIGRATED 3;
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue(strategy:"AUTO")]
  20.     #[ORM\Column(name:"id"type:"integer")]
  21.     private $id;
  22.     #[ORM\Column(name:"status"type:"integer")]
  23.     private $status self::STATUS_PROCESS;
  24.     #[ORM\Column(name:"label"type:"string"length:255)]
  25.     private $label;
  26.     #[ORM\ManyToOne(targetEntity:"App\Entity\User")]
  27.     private $user;
  28.     #[ORM\Column(name:"process"type:"string"length:255nullable:true)]
  29.     private $process;
  30.     #[ORM\Column(name:"batch_token"type:"string"length:255)]
  31.     private $batchToken;
  32.     /**
  33.      * Get id
  34.      *
  35.      * @return int
  36.      */
  37.     public function getId()
  38.     {
  39.         return $this->id;
  40.     }
  41.     /**
  42.      * Set status
  43.      *
  44.      * @param integer $status
  45.      *
  46.      * @return RequestBatch
  47.      */
  48.     public function setStatus($status)
  49.     {
  50.         $this->status $status;
  51.         return $this;
  52.     }
  53.     /**
  54.      * Get status
  55.      *
  56.      * @return int
  57.      */
  58.     public function getStatus()
  59.     {
  60.         return $this->status;
  61.     }
  62.     /**
  63.      * Set label
  64.      *
  65.      * @param string $label
  66.      *
  67.      * @return RequestBatch
  68.      */
  69.     public function setLabel($label)
  70.     {
  71.         $this->label $label;
  72.         return $this;
  73.     }
  74.     /**
  75.      * Get label
  76.      *
  77.      * @return string
  78.      */
  79.     public function getLabel()
  80.     {
  81.         return $this->label;
  82.     }
  83.     /**
  84.      * Set user
  85.      *
  86.      * @param User $user
  87.      *
  88.      * @return RequestBatch
  89.      */
  90.     public function setUser($user)
  91.     {
  92.         $this->user $user;
  93.         return $this;
  94.     }
  95.     /**
  96.      * Get user
  97.      *
  98.      * @return User
  99.      */
  100.     public function getUser()
  101.     {
  102.         return $this->user;
  103.     }
  104.     /**
  105.      * Set process
  106.      *
  107.      * @param string $process
  108.      *
  109.      * @return RequestBatch
  110.      */
  111.     public function setProcess($process)
  112.     {
  113.         $this->process $process;
  114.         return $this;
  115.     }
  116.     /**
  117.      * Get process
  118.      *
  119.      * @return string
  120.      */
  121.     public function getProcess()
  122.     {
  123.         return $this->process;
  124.     }
  125.     /**
  126.      * @return string
  127.      */
  128.     public function getBatchToken()
  129.     {
  130.         return $this->batchToken;
  131.     }
  132.     /**
  133.      * @param string $batchToken
  134.      */
  135.     public function setBatchToken($batchToken)
  136.     {
  137.         $this->batchToken $batchToken;
  138.     }
  139. }