|
2
|
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 |
|
|
83
|
37 |
|
|
|
38 |
/** |
|
|
39 |
* Set id |
|
|
40 |
* |
|
|
41 |
* @param integer $id |
|
|
42 |
*/ |
|
|
43 |
function setId($id) |
|
|
44 |
{ |
|
|
45 |
$this->id = $id; |
|
|
46 |
} |
|
|
47 |
|
|
2
|
48 |
/** |
|
|
49 |
* Set label |
|
|
50 |
* |
|
|
51 |
* @param string $label |
|
|
52 |
*/ |
|
|
53 |
public function setLabel($label) |
|
|
54 |
{ |
|
|
55 |
$this->label = $label; |
|
|
56 |
} |
|
|
57 |
|
|
|
58 |
/** |
|
|
59 |
* Get label |
|
|
60 |
* |
|
|
61 |
* @return string |
|
|
62 |
*/ |
|
|
63 |
public function getLabel() |
|
|
64 |
{ |
|
|
65 |
return $this->label; |
|
|
66 |
} |
|
|
67 |
|
|
|
68 |
|
|
|
69 |
} |