src/Entity/Organisation/University/Specialty.php line 19
- <?php
- namespace App\Entity\Organisation\University;
- use App\Entity\Traits\ActiveTrait;
- use App\Entity\Traits\TrackerFields;
- use App\Entity\Traits\UserCreatedInterface;
- use App\Entity\Traits\UserUpdatedInterface;
- use App\Entity\Traits\WeightTrait;
- use Doctrine\ORM\Mapping as ORM;
- /**
- * Class Specialty
- * @package App\Entity\Organisation\University
- */
- #[ORM\Table(name: 'specialty')]
- #[ORM\Entity(repositoryClass: 'App\Repository\Organisation\University\SpecialtyRepository')]
- #[ORM\HasLifecycleCallbacks]
- class Specialty implements UserCreatedInterface, UserUpdatedInterface
- {
- use TrackerFields;
- use ActiveTrait;
- use WeightTrait;
- #[ORM\Id]
- #[ORM\GeneratedValue(strategy: 'AUTO')]
- #[ORM\Column(type: 'integer')]
- private $id;
- #[ORM\Column(type: 'string')]
- private $caption;
- #[ORM\Column(type: 'string', nullable: true)]
- private $code;
- #[ORM\Column(type: 'text', nullable: true)]
- private $description;
- #[ORM\Column(type: 'integer', nullable: true)]
- private $passingScore;
- /**
- * @var
- */
- #[ORM\ManyToOne(targetEntity: 'App\Entity\Organisation\University\University', inversedBy: 'specialties')]
- #[ORM\JoinColumn(nullable: false)]
- private $university;
- /**
- * @return mixed
- */
- public function getId()
- {
- return $this->id;
- }
- /**
- * @param mixed $id
- */
- public function setId($id): void
- {
- $this->id = $id;
- }
- /**
- * @return mixed
- */
- public function getCaption()
- {
- return $this->caption;
- }
- /**
- * @param mixed $caption
- */
- public function setCaption($caption): void
- {
- $this->caption = $caption;
- }
- /**
- * @return mixed
- */
- public function getCode()
- {
- return $this->code;
- }
- /**
- * @param mixed $code
- */
- public function setCode($code): void
- {
- $this->code = $code;
- }
- /**
- * @return mixed
- */
- public function getDescription()
- {
- return $this->description;
- }
- /**
- * @param mixed $description
- */
- public function setDescription($description): void
- {
- $this->description = $description;
- }
- /**
- * @return mixed
- */
- public function getPassingScore()
- {
- return $this->passingScore;
- }
- /**
- * @param mixed $passingScore
- */
- public function setPassingScore($passingScore): void
- {
- $this->passingScore = $passingScore;
- }
- /**
- * @return mixed
- */
- public function getUniversity()
- {
- return $this->university;
- }
- /**
- * @param mixed $university
- */
- public function setUniversity($university): void
- {
- $this->university = $university;
- }
- }