src/Entity/Review.php line 19

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use App\Entity\Traits\IdTrait;
  7. use App\Entity\Traits\NameTrait;
  8. use App\Entity\Traits\ProjectMethodTrait;
  9. use App\Entity\Traits\ReviewBatchMethodTrait;
  10. use App\Entity\Traits\GetColumnValueTrait;
  11. /**
  12.  *
  13.  * @ORM\Entity(repositoryClass="App\Repository\ReviewRepository")
  14.  *
  15.  * @author wendell.zheng <wxzheng@ustc.edu.cn>
  16.  */
  17. class Review
  18. {
  19.     use IdTraitNameTraitReviewBatchMethodTraitProjectMethodTraitGetColumnValueTrait;
  20.     /**
  21.      *
  22.      * @ORM\ManyToOne(targetEntity="ReviewBatch")
  23.      */
  24.     protected $reviewBatch;
  25.     /**
  26.      *
  27.      * @ORM\ManyToOne(targetEntity="Project")
  28.      */
  29.     protected $project;
  30.     /**
  31.      *
  32.      * @ORM\Column(nullable=true)
  33.      */
  34.     protected $projectCode;
  35.     /**
  36.      *
  37.      * @ORM\Column(nullable=true)
  38.      */
  39.     protected $categoryName;
  40.     /**
  41.      *
  42.      * @ORM\Column(nullable=true)
  43.      */
  44.     protected $levelName;
  45.     /**
  46.      *
  47.      * @ORM\Column(nullable=true)
  48.      */
  49.     protected $rankName;
  50.     /**
  51.      *
  52.      * @ORM\Column(nullable=true)
  53.      */
  54.     protected $userName;
  55.     /**
  56.      *
  57.      * @ORM\Column(nullable=true)
  58.      */
  59.     protected $yearName;
  60.     /**
  61.      *
  62.      * @ORM\Column(nullable=true)
  63.      */
  64.     protected $collegeName;
  65.     /**
  66.      *
  67.      * @ORM\Column(nullable=true)
  68.      */
  69.     protected $propertyName;
  70.     /**
  71.      *
  72.      * @ORM\Column(name="group_",type="integer")
  73.      */
  74.     protected $group 0;
  75.     /**
  76.      *
  77.      * @ORM\Column(type="integer")
  78.      */
  79.     protected $sort 0;
  80.     /**
  81.      *
  82.      * @ORM\OneToMany(targetEntity="Score", mappedBy="review")
  83.      */
  84.     protected $scores;
  85.     public function __construct()
  86.     {
  87.         $this->scores = new ArrayCollection();
  88.     }
  89.     /**
  90.      *
  91.      * @return string
  92.      */
  93.     public function getProjectCode()
  94.     {
  95.         return $this->projectCode;
  96.     }
  97.     /**
  98.      *
  99.      * @param string $projectCode
  100.      */
  101.     public function setProjectCode($projectCode)
  102.     {
  103.         $this->projectCode $projectCode;
  104.     }
  105.     /**
  106.      *
  107.      * @return string
  108.      */
  109.     public function getCategoryName()
  110.     {
  111.         return $this->categoryName;
  112.     }
  113.     /**
  114.      *
  115.      * @param string $categoryName
  116.      */
  117.     public function setCategoryName($categoryName)
  118.     {
  119.         $this->categoryName $categoryName;
  120.     }
  121.     /**
  122.      *
  123.      * @return string
  124.      */
  125.     public function getLevelName()
  126.     {
  127.         return $this->levelName;
  128.     }
  129.     /**
  130.      *
  131.      * @param string $levelName
  132.      */
  133.     public function setLevelName($levelName)
  134.     {
  135.         $this->levelName $levelName;
  136.     }
  137.     /**
  138.      *
  139.      * @return string
  140.      */
  141.     public function getRankName()
  142.     {
  143.         return $this->rankName;
  144.     }
  145.     /**
  146.      *
  147.      * @param string $rankName
  148.      */
  149.     public function setRankName($rankName)
  150.     {
  151.         $this->rankName $rankName;
  152.     }
  153.     /**
  154.      *
  155.      * @return string
  156.      */
  157.     public function getUserName()
  158.     {
  159.         return $this->userName;
  160.     }
  161.     /**
  162.      *
  163.      * @param string $userName
  164.      */
  165.     public function setUserName($userName)
  166.     {
  167.         $this->userName $userName;
  168.     }
  169.     /**
  170.      *
  171.      * @return string
  172.      */
  173.     public function getYearName()
  174.     {
  175.         return $this->yearName;
  176.     }
  177.     /**
  178.      *
  179.      * @param string $yearName
  180.      */
  181.     public function setYearName($yearName)
  182.     {
  183.         $this->yearName $yearName;
  184.     }
  185.     /**
  186.      *
  187.      * @return string
  188.      */
  189.     public function getCollegeName()
  190.     {
  191.         return $this->collegeName;
  192.     }
  193.     /**
  194.      *
  195.      * @param string $collegeName
  196.      */
  197.     public function setCollegeName($collegeName)
  198.     {
  199.         $this->collegeName $collegeName;
  200.     }
  201.     /**
  202.      *
  203.      * @return string
  204.      */
  205.     public function getPropertyName()
  206.     {
  207.         return $this->propertyName;
  208.     }
  209.     /**
  210.      *
  211.      * @param string $propertyName
  212.      */
  213.     public function setPropertyName($propertyName)
  214.     {
  215.         $this->propertyName $propertyName;
  216.     }
  217.     /**
  218.      *
  219.      * @return number
  220.      */
  221.     public function getGroup()
  222.     {
  223.         return $this->group;
  224.     }
  225.     /**
  226.      *
  227.      * @param number $group
  228.      */
  229.     public function setGroup($group)
  230.     {
  231.         $this->group $group;
  232.     }
  233.     /**
  234.      *
  235.      * @return number
  236.      */
  237.     public function getSort()
  238.     {
  239.         return $this->sort;
  240.     }
  241.     /**
  242.      *
  243.      * @param number $sort
  244.      */
  245.     public function setSort($sort)
  246.     {
  247.         $this->sort $sort;
  248.     }
  249.     /**
  250.      *
  251.      * @return Collection|Level[]
  252.      */
  253.     public function getScores(): Collection
  254.     {
  255.         return $this->scores;
  256.     }
  257. }