Model/Category.php
changeset 2 13f43f53d0ba
child 83 e9f04298bdfa
equal deleted inserted replaced
1:06a22ff5d58d 2:13f43f53d0ba
       
     1 <?php
       
     2 /*
       
     3  * This file is part of the WikiTagBundle package.
       
     4  *
       
     5  * (c) IRI <http://www.iri.centrepompidou.fr/>
       
     6  *
       
     7  * For the full copyright and license information, please view the LICENSE
       
     8  * file that was distributed with this source code.
       
     9  */
       
    10 
       
    11 namespace IRI\Bundle\WikiTagBundle\Model;
       
    12 
       
    13 abstract class Category implements CategoryInterface
       
    14 {
       
    15     
       
    16     /**
       
    17     * @var integer $id
       
    18     */
       
    19     protected $id;
       
    20     
       
    21     /**
       
    22      * @var string $label
       
    23      */
       
    24     protected $label;
       
    25     
       
    26     
       
    27     /**
       
    28      * Get id
       
    29      *
       
    30      * @return integer
       
    31      */
       
    32     public function getId()
       
    33     {
       
    34         return $this->id;
       
    35     }
       
    36     
       
    37     /**
       
    38      * Set label
       
    39      *
       
    40      * @param string $label
       
    41      */
       
    42     public function setLabel($label)
       
    43     {
       
    44         $this->label = $label;
       
    45     }
       
    46     
       
    47     /**
       
    48      * Get label
       
    49      *
       
    50      * @return string
       
    51      */
       
    52     public function getLabel()
       
    53     {
       
    54         return $this->label;
       
    55     }
       
    56     
       
    57     
       
    58 }