src/Entity/Scholar/Competence.php line 16

  1. <?php
  2. namespace App\Entity\Scholar;
  3. use App\Entity\Traits\UserCreatedInterface;
  4. use App\Entity\Traits\UserUpdatedInterface;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * Class Competence
  8.  * @package App\Entity\Scholar
  9.  */
  10. #[ORM\Table(name'scholar_competence')]
  11. #[ORM\Entity(repositoryClass'App\Repository\Scholar\CompetenceRepository')]
  12. #[ORM\HasLifecycleCallbacks]
  13. class Competence implements UserCreatedInterfaceUserUpdatedInterface
  14. {
  15.     use \App\Entity\Traits\TrackerFields;
  16.     use \App\Entity\Traits\ActiveTrait;
  17.     #[ORM\Id]
  18.     #[ORM\GeneratedValue(strategy'AUTO')]
  19.     #[ORM\Column(type'integer')]
  20.     private $id;
  21.     #[ORM\Column(type'string')]
  22.     private $caption;
  23.     /**
  24.      * @return mixed
  25.      */
  26.     public function getId()
  27.     {
  28.         return $this->id;
  29.     }
  30.     /**
  31.      * @param mixed $id
  32.      */
  33.     public function setId($id): void
  34.     {
  35.         $this->id $id;
  36.     }
  37.     /**
  38.      * @return mixed
  39.      */
  40.     public function getCaption()
  41.     {
  42.         return $this->caption;
  43.     }
  44.     /**
  45.      * @param mixed $caption
  46.      */
  47.     public function setCaption($caption): void
  48.     {
  49.         $this->caption $caption;
  50.     }
  51. }