src/Entity/ReviewBatch.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Traits\IdTrait;
  5. use App\Entity\Traits\NameTrait;
  6. /**
  7.  *
  8.  * @ORM\Entity(repositoryClass="App\Repository\ReviewBatchRepository")
  9.  */
  10. class ReviewBatch
  11. {
  12.     use IdTraitNameTrait;
  13.     const NAME '评审批次';
  14.     /**
  15.      *
  16.      * @ORM\Column(type="boolean")
  17.      */
  18.     protected $current false;
  19.     public function getCurrent(): bool
  20.     {
  21.         return $this->current;
  22.     }
  23.     public function setCurrent(bool $current)
  24.     {
  25.         $this->current $current;
  26.     }
  27.     public function formatCurrent(): string
  28.     {
  29.         return $this->current '是' '否';
  30.     }
  31. }