src/Entity/Organisation/University/Specialty.php line 19

  1. <?php
  2. namespace App\Entity\Organisation\University;
  3. use App\Entity\Traits\ActiveTrait;
  4. use App\Entity\Traits\TrackerFields;
  5. use App\Entity\Traits\UserCreatedInterface;
  6. use App\Entity\Traits\UserUpdatedInterface;
  7. use App\Entity\Traits\WeightTrait;
  8. use Doctrine\ORM\Mapping as ORM;
  9. /**
  10.  * Class Specialty
  11.  * @package App\Entity\Organisation\University
  12.  */
  13. #[ORM\Table(name'specialty')]
  14. #[ORM\Entity(repositoryClass'App\Repository\Organisation\University\SpecialtyRepository')]
  15. #[ORM\HasLifecycleCallbacks]
  16. class Specialty implements UserCreatedInterfaceUserUpdatedInterface
  17. {
  18.     use TrackerFields;
  19.     use ActiveTrait;
  20.     use WeightTrait;
  21.     #[ORM\Id]
  22.     #[ORM\GeneratedValue(strategy'AUTO')]
  23.     #[ORM\Column(type'integer')]
  24.     private $id;
  25.     #[ORM\Column(type'string')]
  26.     private $caption;
  27.     #[ORM\Column(type'string'nullabletrue)]
  28.     private $code;
  29.     #[ORM\Column(type'text'nullabletrue)]
  30.     private $description;
  31.     #[ORM\Column(type'integer'nullabletrue)]
  32.     private $passingScore;
  33.     /**
  34.      * @var
  35.      */
  36.     #[ORM\ManyToOne(targetEntity'App\Entity\Organisation\University\University'inversedBy'specialties')]
  37.     #[ORM\JoinColumn(nullablefalse)]
  38.     private $university;
  39.     /**
  40.      * @return mixed
  41.      */
  42.     public function getId()
  43.     {
  44.         return $this->id;
  45.     }
  46.     /**
  47.      * @param mixed $id
  48.      */
  49.     public function setId($id): void
  50.     {
  51.         $this->id $id;
  52.     }
  53.     /**
  54.      * @return mixed
  55.      */
  56.     public function getCaption()
  57.     {
  58.         return $this->caption;
  59.     }
  60.     /**
  61.      * @param mixed $caption
  62.      */
  63.     public function setCaption($caption): void
  64.     {
  65.         $this->caption $caption;
  66.     }
  67.     /**
  68.      * @return mixed
  69.      */
  70.     public function getCode()
  71.     {
  72.         return $this->code;
  73.     }
  74.     /**
  75.      * @param mixed $code
  76.      */
  77.     public function setCode($code): void
  78.     {
  79.         $this->code $code;
  80.     }
  81.     /**
  82.      * @return mixed
  83.      */
  84.     public function getDescription()
  85.     {
  86.         return $this->description;
  87.     }
  88.     /**
  89.      * @param mixed $description
  90.      */
  91.     public function setDescription($description): void
  92.     {
  93.         $this->description $description;
  94.     }
  95.     /**
  96.      * @return mixed
  97.      */
  98.     public function getPassingScore()
  99.     {
  100.         return $this->passingScore;
  101.     }
  102.     /**
  103.      * @param mixed $passingScore
  104.      */
  105.     public function setPassingScore($passingScore): void
  106.     {
  107.         $this->passingScore $passingScore;
  108.     }
  109.     /**
  110.      * @return mixed
  111.      */
  112.     public function getUniversity()
  113.     {
  114.         return $this->university;
  115.     }
  116.     /**
  117.      * @param mixed $university
  118.      */
  119.     public function setUniversity($university): void
  120.     {
  121.         $this->university $university;
  122.     }
  123. }