<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
use App\Entity\Traits\CodeTrait;
use App\Entity\Traits\RankTrait;
/**
*
* @ORM\Entity(repositoryClass="App\Repository\ItemBookRepository")
*
* @author wendell.zheng <wxzheng@ustc.edu.cn>
*/
class ItemBook extends AbstractItem
{
use CodeTrait;
use RankTrait;
const TITLES = [
'项目编号',
'项目类别',
'级别',
'子类别',
'教材立项名称',
'编者',
'立项时间',
'所属单位',
'备注'
];
const COLUMNS = [
'code',
'category',
'level',
'rank',
'name',
'author',
'date',
'department',
'remark'
];
/**
*
* @ORM\Column(nullable=true)
*/
protected $wordCount;
public function getWordCount(): ?string
{
return $this->wordCount;
}
public function setWordCount(?string $wordCount)
{
$this->wordCount = $wordCount;
}
}