src/Entity/Engagement/EngagementJalon.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Engagement;
  3. use App\Repository\EngagementJalonRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use App\Annotation\CustomAnnotation;
  6. /**
  7.  * @ORM\Entity(repositoryClass=EngagementJalonRepository::class)
  8.  */
  9. class EngagementJalon
  10. {
  11.     /**
  12.      * @ORM\Id
  13.      * @ORM\GeneratedValue
  14.      * @ORM\Column(type="integer")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      * @CustomAnnotation("Name jalon")
  20.      */
  21.     private $name;
  22.     public function getId(): ?int
  23.     {
  24.         return $this->id;
  25.     }
  26.     public function getName(): ?string
  27.     {
  28.         return $this->name;
  29.     }
  30.     public function setName(?string $name): self
  31.     {
  32.         $this->name = $name;
  33.         return $this;
  34.     }
  35. }