Pays.php 1.43 KB
Newer Older
1 2 3 4 5
<?php

namespace Api2Bundle\Entity;

use Doctrine\ORM\Mapping as ORM;
6 7
use JMS\Serializer\Annotation as Serializer;

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22

/**
 * Pays
 *
 * @ORM\Table(name="pays")
 * @ORM\Entity(repositoryClass="Api2Bundle\Repository\PaysRepository")
 */
class Pays
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
23
     * @Serializer\Groups({"getBrasserie"})
24 25 26 27 28 29 30 31 32 33 34 35 36 37
     */
    private $id;
    
    /**
     * @var string
     *
     * @ORM\Column(name="isocode", type="string", length=255, unique=true)
     */
    private $isocode;

    /**
     * @var string
     *
     * @ORM\Column(name="nom", type="string", length=255)
38
     * @Serializer\Groups({"getBrasserie"})
39 40 41 42 43 44 45 46 47 48 49 50 51
     */
    private $nom;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }
Mat's avatar
Mat committed
52
    
53 54 55 56 57 58 59
    /**
     * @return string
     */
    public function getIsocode()
    {
        return $this->isocode;
    }
Mat's avatar
Mat committed
60
    
61
    /**
Mat's avatar
Mat committed
62
     * @param string $isocode
63 64
     * @return Pays
     */
Mat's avatar
Mat committed
65
    public function setIsocode($isocode)
66
    {
Mat's avatar
Mat committed
67
        $this->isocode = $isocode;
68 69
        return $this;
    }
Mat's avatar
Mat committed
70
    
71 72 73 74 75 76 77 78 79
    /**
     * @return string
     */
    public function getNom()
    {
        return $this->nom;
    }
    
    /**
Mat's avatar
Mat committed
80 81
     * @param string $nom
     * @return Pays
82
     */
Mat's avatar
Mat committed
83
    public function setNom($nom)
84
    {
Mat's avatar
Mat committed
85 86
        $this->nom = $nom;
        return $this;
87 88 89 90 91
    }
    
    
}