src/Entity/Pays.php line 17

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: sbrun
  5.  * Date: 2018-03-23
  6.  * Time: 9:47 AM
  7.  */
  8. namespace App\Entity;
  9. use Doctrine\ORM\Mapping as ORM;
  10. use Symfony\Component\Validator\Constraints as Assert;
  11. /**
  12.  * @ORM\Entity
  13.  * @ORM\Table(name="TPays")
  14.  */
  15. class Pays
  16. {
  17.     const DEFAULT_COUNTRY 1;
  18.     /**
  19.      * @ORM\Column(type="integer")
  20.      * @ORM\Id
  21.      * @ORM\GeneratedValue(strategy="AUTO")
  22.      */
  23.     protected $id;
  24.     /**
  25.      * @ORM\Column(name="PNom", type="string", length=50)
  26.      */
  27.     protected $nom;
  28.     public function __toString()
  29.     {
  30.         return $this->getNom();
  31.     }
  32.     /**
  33.      * @return mixed
  34.      */
  35.     public function getId()
  36.     {
  37.         return $this->id;
  38.     }
  39.     /**
  40.      * @return mixed
  41.      */
  42.     public function getNom()
  43.     {
  44.         return $this->nom;
  45.     }
  46.     /**
  47.      * @param mixed $nom
  48.      */
  49.     public function setNom($nom)
  50.     {
  51.         $this->nom $nom;
  52.     }
  53. }