iifast

Untitled

Mar 11th, 2020
226
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.15 KB | None | 0 0
  1. <?php
  2.  
  3.  
  4. namespace ClubBundle\Entity;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use Symfony\Component\Validator\Constraints as Assert;
  7.  
  8. /*
  9.  * Class Club
  10.  * @package ClubBundle\Entity
  11.  */
  12.  
  13. /**
  14.  * Class Club
  15.  * @ORM\Table(name="club")
  16.  * @ORM\Entity(repositoryClass="ClubBundle\Repository\clubRepository")
  17.  */
  18. class Club
  19. {
  20.  
  21.     /**
  22.     * @ORM\Column(type="integer")
  23.     * @ORM\Id
  24.     *@ORM\GeneratedValue(strategy="AUTO")
  25.     */
  26.     private $id ;
  27.  
  28.     /**
  29.      * @ORM\Column(type="string",length=255)
  30.      * @Assert\NotBlank(message="Le champ Nom est Obligatoire")
  31.      * @Assert\Length(min=5,max=50)
  32.      */
  33.  
  34.     private $nom;
  35.     /**
  36.      * @ORM\Column(type="string",length=255)
  37.      */
  38.      private $description;
  39.     /**
  40.      * @ORM\Column(type="string",length=255)
  41.      */
  42.      private $adresse;
  43.     /**
  44.      * @ORM\Column(type="string",length=255)
  45.      */
  46.      private $domaine;
  47.  
  48.     /**
  49.      * @return mixed
  50.      */
  51.     public function getId()
  52.     {
  53.         return $this->id;
  54.     }
  55.  
  56.     /**
  57.      * @param mixed $id
  58.      */
  59.     public function setId($id)
  60.     {
  61.         $this->id = $id;
  62.     }
  63.  
  64.     /**
  65.      * @return mixed
  66.      */
  67.     public function getNom()
  68.     {
  69.         return $this->nom;
  70.     }
  71.  
  72.     /**
  73.      * @param mixed $nom
  74.      */
  75.     public function setNom($nom)
  76.     {
  77.         $this->nom = $nom;
  78.     }
  79.  
  80.     /**
  81.      * @return mixed
  82.      */
  83.     public function getDescription()
  84.     {
  85.         return $this->description;
  86.     }
  87.  
  88.     /**
  89.      * @param mixed $description
  90.      */
  91.     public function setDescription($description)
  92.     {
  93.         $this->description = $description;
  94.     }
  95.  
  96.     /**
  97.      * @return mixed
  98.      */
  99.     public function getAdresse()
  100.     {
  101.         return $this->adresse;
  102.     }
  103.  
  104.     /**
  105.      * @param mixed $adresse
  106.      */
  107.     public function setAdresse($adresse)
  108.     {
  109.         $this->adresse = $adresse;
  110.     }
  111.  
  112.     /**
  113.      * @return mixed
  114.      */
  115.     public function getDomaine()
  116.     {
  117.         return $this->domaine;
  118.     }
  119.  
  120.     /**
  121.      * @param mixed $domaine
  122.      */
  123.     public function setDomaine($domaine)
  124.     {
  125.         $this->domaine = $domaine;
  126.     }
  127.  
  128. }
Advertisement
Add Comment
Please, Sign In to add comment