src/Entity/Scholar/Achievement.php line 17

  1. <?php
  2. namespace App\Entity\Scholar;
  3. use App\Entity\Traits\UserCreatedInterface;
  4. use App\Entity\Traits\UserUpdatedInterface;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * Class Competence
  9.  * @package App\Entity\Scholar
  10.  */
  11. #[ORM\Table(name'scholar_achievement')]
  12. #[ORM\Entity(repositoryClass'App\Repository\Scholar\AchievementRepository')]
  13. #[ORM\HasLifecycleCallbacks]
  14. class Achievement implements UserCreatedInterfaceUserUpdatedInterface
  15. {
  16.     use \App\Entity\Traits\TrackerFields;
  17.     use \App\Entity\Traits\ActiveTrait;
  18.     #[ORM\Id]
  19.     #[ORM\GeneratedValue(strategy'AUTO')]
  20.     #[ORM\Column(type'integer')]
  21.     private $id;
  22.     #[ORM\Column(type'string')]
  23.     private $caption;
  24.     /**
  25.      * @var Collection|Profile[]
  26.      */
  27.     #[ORM\ManyToMany(targetEntity'App\Entity\Scholar\Profile'mappedBy'achievements')]
  28.     private $scholar_profiles;
  29.     /**
  30.      * @return mixed
  31.      */
  32.     public function getId()
  33.     {
  34.         return $this->id;
  35.     }
  36.     /**
  37.      * @param mixed $id
  38.      */
  39.     public function setId($id): void
  40.     {
  41.         $this->id $id;
  42.     }
  43.     /**
  44.      * @return mixed
  45.      */
  46.     public function getCaption()
  47.     {
  48.         return $this->caption;
  49.     }
  50.     /**
  51.      * @param mixed $caption
  52.      */
  53.     public function setCaption($caption): void
  54.     {
  55.         $this->caption $caption;
  56.     }
  57.     /**
  58.      * @return Profile[]|Collection
  59.      */
  60.     public function getScholarProfiles()
  61.     {
  62.         return $this->scholar_profiles;
  63.     }
  64.     /**
  65.      * @param Profile[]|Collection $scholar_profiles
  66.      */
  67.     public function setScholarProfiles($scholar_profiles): void
  68.     {
  69.         $this->scholar_profiles $scholar_profiles;
  70.     }
  71. }