]>
Commit | Line | Data |
---|---|---|
1 | <?php | |
2 | ||
3 | namespace Wallabag\CoreBundle\Entity; | |
4 | ||
5 | use Doctrine\ORM\Mapping as ORM; | |
6 | use JMS\Serializer\Annotation\XmlRoot; | |
7 | ||
8 | /** | |
9 | * Tag | |
10 | * | |
11 | * @XmlRoot("tag") | |
12 | * @ORM\Table(name="tag") | |
13 | * @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository") | |
14 | */ | |
15 | class Tag | |
16 | { | |
17 | /** | |
18 | * @var integer | |
19 | * | |
20 | * @ORM\Column(name="id", type="integer") | |
21 | * @ORM\Id | |
22 | * @ORM\GeneratedValue(strategy="AUTO") | |
23 | */ | |
24 | private $id; | |
25 | ||
26 | /** | |
27 | * @var string | |
28 | * | |
29 | * @ORM\Column(name="label", type="text") | |
30 | */ | |
31 | private $label; | |
32 | ||
33 | /** | |
34 | * Get id | |
35 | * | |
36 | * @return integer | |
37 | */ | |
38 | public function getId() | |
39 | { | |
40 | return $this->id; | |
41 | } | |
42 | ||
43 | /** | |
44 | * Set label | |
45 | * | |
46 | * @param string $label | |
47 | * @return Tag | |
48 | */ | |
49 | public function setLabel($label) | |
50 | { | |
51 | $this->label = $label; | |
52 | ||
53 | return $this; | |
54 | } | |
55 | ||
56 | /** | |
57 | * Get label | |
58 | * | |
59 | * @return string | |
60 | */ | |
61 | public function getLabel() | |
62 | { | |
63 | return $this->label; | |
64 | } | |
65 | } |