Categorie.php 920 Bytes
Newer Older
1 2 3 4 5 6
<?php

namespace Api2Bundle\Entity;

use Doctrine\ORM\Mapping as ORM;

7

8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/**
 * Categorie
 *
 * @ORM\Table(name="categorie")
 * @ORM\Entity(repositoryClass="Api2Bundle\Repository\CategorieRepository")
 */
class Categorie
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer")
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="AUTO")
     */
    private $id;
    
    /**
     * @var string
     *
     * @ORM\Column(name="nom", type="string", length=255)
     */
    private $nom;


    /**
     * Get id
     *
     * @return int
     */
    public function getId()
    {
        return $this->id;
    }
Mat's avatar
Mat committed
42
    
43 44 45 46 47 48 49 50 51
    /**
     * @return string
     */
    public function getNom()
    {
        return $this->nom;
    }
    
    /**
Mat's avatar
Mat committed
52 53
     * @param string $nom
     * @return Categorie
54
     */
Mat's avatar
Mat committed
55
    public function setNom($nom)
56
    {
Mat's avatar
Mat committed
57 58
        $this->nom = $nom;
        return $this;
59 60 61 62 63
    }
    
    
}