diff options
author | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-06 18:15:19 +0100 |
---|---|---|
committer | Nicolas LÅ“uillet <nicolas@loeuillet.org> | 2015-02-09 12:58:44 +0100 |
commit | 653e8be4c1ae589fff52af0229338ced7b2ada2c (patch) | |
tree | e07ec28b834a9303b63910e6f6bfb8c4ff5d840a /src/Wallabag/CoreBundle/Entity/Tag.php | |
parent | 8af35ad932177e0363412a868afc128b406e3322 (diff) | |
download | wallabag-653e8be4c1ae589fff52af0229338ced7b2ada2c.tar.gz wallabag-653e8be4c1ae589fff52af0229338ced7b2ada2c.tar.zst wallabag-653e8be4c1ae589fff52af0229338ced7b2ada2c.zip |
rename Tags entity
why did I delete this file?
rename Tags entity
rename Tags entity
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity/Tag.php')
-rw-r--r-- | src/Wallabag/CoreBundle/Entity/Tag.php | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Tag.php b/src/Wallabag/CoreBundle/Entity/Tag.php new file mode 100644 index 00000000..31017563 --- /dev/null +++ b/src/Wallabag/CoreBundle/Entity/Tag.php | |||
@@ -0,0 +1,63 @@ | |||
1 | <?php | ||
2 | |||
3 | namespace Wallabag\CoreBundle\Entity; | ||
4 | |||
5 | use Doctrine\ORM\Mapping as ORM; | ||
6 | |||
7 | /** | ||
8 | * Tag | ||
9 | * | ||
10 | * @ORM\Table(name="tag") | ||
11 | * @ORM\Entity | ||
12 | */ | ||
13 | class Tag | ||
14 | { | ||
15 | /** | ||
16 | * @var integer | ||
17 | * | ||
18 | * @ORM\Column(name="id", type="integer") | ||
19 | * @ORM\Id | ||
20 | * @ORM\GeneratedValue(strategy="AUTO") | ||
21 | */ | ||
22 | private $id; | ||
23 | |||
24 | /** | ||
25 | * @var string | ||
26 | * | ||
27 | * @ORM\Column(name="label", type="text") | ||
28 | */ | ||
29 | private $label; | ||
30 | |||
31 | /** | ||
32 | * Get id | ||
33 | * | ||
34 | * @return integer | ||
35 | */ | ||
36 | public function getId() | ||
37 | { | ||
38 | return $this->id; | ||
39 | } | ||
40 | |||
41 | /** | ||
42 | * Set label | ||
43 | * | ||
44 | * @param string $label | ||
45 | * @return Tag | ||
46 | */ | ||
47 | public function setLabel($label) | ||
48 | { | ||
49 | $this->label = $label; | ||
50 | |||
51 | return $this; | ||
52 | } | ||
53 | |||
54 | /** | ||
55 | * Get label | ||
56 | * | ||
57 | * @return string | ||
58 | */ | ||
59 | public function getLabel() | ||
60 | { | ||
61 | return $this->value; | ||
62 | } | ||
63 | } | ||