src/Entity/ItemBook.php line 14

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Entity\Traits\CodeTrait;
  5. use App\Entity\Traits\RankTrait;
  6. /**
  7.  *
  8.  * @ORM\Entity(repositoryClass="App\Repository\ItemBookRepository")
  9.  *
  10.  * @author wendell.zheng <wxzheng@ustc.edu.cn>
  11.  */
  12. class ItemBook extends AbstractItem
  13. {
  14.     use CodeTrait;
  15.     use RankTrait;
  16.     const TITLES = [
  17.         '项目编号',
  18.         '项目类别',
  19.         '级别',
  20.         '子类别',
  21.         '教材立项名称',
  22.         '编者',
  23.         '立项时间',
  24.         '所属单位',
  25.         '备注'
  26.     ];
  27.     const COLUMNS = [
  28.         'code',
  29.         'category',
  30.         'level',
  31.         'rank',
  32.         'name',
  33.         'author',
  34.         'date',
  35.         'department',
  36.         'remark'
  37.     ];
  38.     /**
  39.      *
  40.      * @ORM\Column(nullable=true)
  41.      */
  42.     protected $wordCount;
  43.     public function getWordCount(): ?string
  44.     {
  45.         return $this->wordCount;
  46.     }
  47.     public function setWordCount(?string $wordCount)
  48.     {
  49.         $this->wordCount $wordCount;
  50.     }
  51. }