aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Wallabag/CoreBundle/Entity
diff options
context:
space:
mode:
authorJeremy <jeremy.benoist@gmail.com>2015-01-31 19:09:34 +0100
committerJeremy <jeremy.benoist@gmail.com>2015-01-31 19:12:49 +0100
commit7df80cb32ca9b7d0fe452320ddc3563a1e373e2f (patch)
treec07eb79213d471aa33c49ef4e5819e41cc12f242 /src/Wallabag/CoreBundle/Entity
parent1990517b2263a080946853ed697a6d687262ae80 (diff)
downloadwallabag-7df80cb32ca9b7d0fe452320ddc3563a1e373e2f.tar.gz
wallabag-7df80cb32ca9b7d0fe452320ddc3563a1e373e2f.tar.zst
wallabag-7df80cb32ca9b7d0fe452320ddc3563a1e373e2f.zip
CS
Diffstat (limited to 'src/Wallabag/CoreBundle/Entity')
-rw-r--r--src/Wallabag/CoreBundle/Entity/Config.php12
-rw-r--r--src/Wallabag/CoreBundle/Entity/Entries.php29
-rw-r--r--src/Wallabag/CoreBundle/Entity/Tags.php8
-rw-r--r--src/Wallabag/CoreBundle/Entity/TagsEntries.php12
-rw-r--r--src/Wallabag/CoreBundle/Entity/Users.php21
-rw-r--r--src/Wallabag/CoreBundle/Entity/UsersConfig.php16
6 files changed, 44 insertions, 54 deletions
diff --git a/src/Wallabag/CoreBundle/Entity/Config.php b/src/Wallabag/CoreBundle/Entity/Config.php
index d60b2df0..045ca308 100644
--- a/src/Wallabag/CoreBundle/Entity/Config.php
+++ b/src/Wallabag/CoreBundle/Entity/Config.php
@@ -35,12 +35,10 @@ class Config
35 */ 35 */
36 private $value; 36 private $value;
37 37
38
39
40 /** 38 /**
41 * Get id 39 * Get id
42 * 40 *
43 * @return integer 41 * @return integer
44 */ 42 */
45 public function getId() 43 public function getId()
46 { 44 {
@@ -50,7 +48,7 @@ class Config
50 /** 48 /**
51 * Set name 49 * Set name
52 * 50 *
53 * @param string $name 51 * @param string $name
54 * @return Config 52 * @return Config
55 */ 53 */
56 public function setName($name) 54 public function setName($name)
@@ -63,7 +61,7 @@ class Config
63 /** 61 /**
64 * Get name 62 * Get name
65 * 63 *
66 * @return string 64 * @return string
67 */ 65 */
68 public function getName() 66 public function getName()
69 { 67 {
@@ -73,7 +71,7 @@ class Config
73 /** 71 /**
74 * Set value 72 * Set value
75 * 73 *
76 * @param string $value 74 * @param string $value
77 * @return Config 75 * @return Config
78 */ 76 */
79 public function setValue($value) 77 public function setValue($value)
@@ -86,7 +84,7 @@ class Config
86 /** 84 /**
87 * Get value 85 * Get value
88 * 86 *
89 * @return string 87 * @return string
90 */ 88 */
91 public function getValue() 89 public function getValue()
92 { 90 {
diff --git a/src/Wallabag/CoreBundle/Entity/Entries.php b/src/Wallabag/CoreBundle/Entity/Entries.php
index 3c061a37..9da5102c 100644
--- a/src/Wallabag/CoreBundle/Entity/Entries.php
+++ b/src/Wallabag/CoreBundle/Entity/Entries.php
@@ -66,12 +66,10 @@ class Entries
66 */ 66 */
67 private $userId; 67 private $userId;
68 68
69
70
71 /** 69 /**
72 * Get id 70 * Get id
73 * 71 *
74 * @return integer 72 * @return integer
75 */ 73 */
76 public function getId() 74 public function getId()
77 { 75 {
@@ -81,7 +79,7 @@ class Entries
81 /** 79 /**
82 * Set title 80 * Set title
83 * 81 *
84 * @param string $title 82 * @param string $title
85 * @return Entries 83 * @return Entries
86 */ 84 */
87 public function setTitle($title) 85 public function setTitle($title)
@@ -94,7 +92,7 @@ class Entries
94 /** 92 /**
95 * Get title 93 * Get title
96 * 94 *
97 * @return string 95 * @return string
98 */ 96 */
99 public function getTitle() 97 public function getTitle()
100 { 98 {
@@ -104,7 +102,7 @@ class Entries
104 /** 102 /**
105 * Set url 103 * Set url
106 * 104 *
107 * @param string $url 105 * @param string $url
108 * @return Entries 106 * @return Entries
109 */ 107 */
110 public function setUrl($url) 108 public function setUrl($url)
@@ -117,7 +115,7 @@ class Entries
117 /** 115 /**
118 * Get url 116 * Get url
119 * 117 *
120 * @return string 118 * @return string
121 */ 119 */
122 public function getUrl() 120 public function getUrl()
123 { 121 {
@@ -127,7 +125,7 @@ class Entries
127 /** 125 /**
128 * Set isRead 126 * Set isRead
129 * 127 *
130 * @param string $isRead 128 * @param string $isRead
131 * @return Entries 129 * @return Entries
132 */ 130 */
133 public function setIsRead($isRead) 131 public function setIsRead($isRead)
@@ -140,7 +138,7 @@ class Entries
140 /** 138 /**
141 * Get isRead 139 * Get isRead
142 * 140 *
143 * @return string 141 * @return string
144 */ 142 */
145 public function getIsRead() 143 public function getIsRead()
146 { 144 {
@@ -150,13 +148,14 @@ class Entries
150 public function toggleArchive() 148 public function toggleArchive()
151 { 149 {
152 $this->isRead = $this->getIsRead() ^ 1; 150 $this->isRead = $this->getIsRead() ^ 1;
151
153 return $this; 152 return $this;
154 } 153 }
155 154
156 /** 155 /**
157 * Set isFav 156 * Set isFav
158 * 157 *
159 * @param string $isFav 158 * @param string $isFav
160 * @return Entries 159 * @return Entries
161 */ 160 */
162 public function setIsFav($isFav) 161 public function setIsFav($isFav)
@@ -169,7 +168,7 @@ class Entries
169 /** 168 /**
170 * Get isFav 169 * Get isFav
171 * 170 *
172 * @return string 171 * @return string
173 */ 172 */
174 public function getIsFav() 173 public function getIsFav()
175 { 174 {
@@ -186,7 +185,7 @@ class Entries
186 /** 185 /**
187 * Set content 186 * Set content
188 * 187 *
189 * @param string $content 188 * @param string $content
190 * @return Entries 189 * @return Entries
191 */ 190 */
192 public function setContent($content) 191 public function setContent($content)
@@ -199,7 +198,7 @@ class Entries
199 /** 198 /**
200 * Get content 199 * Get content
201 * 200 *
202 * @return string 201 * @return string
203 */ 202 */
204 public function getContent() 203 public function getContent()
205 { 204 {
@@ -209,7 +208,7 @@ class Entries
209 /** 208 /**
210 * Set userId 209 * Set userId
211 * 210 *
212 * @param string $userId 211 * @param string $userId
213 * @return Entries 212 * @return Entries
214 */ 213 */
215 public function setUserId($userId) 214 public function setUserId($userId)
@@ -222,7 +221,7 @@ class Entries
222 /** 221 /**
223 * Get userId 222 * Get userId
224 * 223 *
225 * @return string 224 * @return string
226 */ 225 */
227 public function getUserId() 226 public function getUserId()
228 { 227 {
diff --git a/src/Wallabag/CoreBundle/Entity/Tags.php b/src/Wallabag/CoreBundle/Entity/Tags.php
index 6fe16a53..eab91ba0 100644
--- a/src/Wallabag/CoreBundle/Entity/Tags.php
+++ b/src/Wallabag/CoreBundle/Entity/Tags.php
@@ -28,12 +28,10 @@ class Tags
28 */ 28 */
29 private $value; 29 private $value;
30 30
31
32
33 /** 31 /**
34 * Get id 32 * Get id
35 * 33 *
36 * @return integer 34 * @return integer
37 */ 35 */
38 public function getId() 36 public function getId()
39 { 37 {
@@ -43,7 +41,7 @@ class Tags
43 /** 41 /**
44 * Set value 42 * Set value
45 * 43 *
46 * @param string $value 44 * @param string $value
47 * @return Tags 45 * @return Tags
48 */ 46 */
49 public function setValue($value) 47 public function setValue($value)
@@ -56,7 +54,7 @@ class Tags
56 /** 54 /**
57 * Get value 55 * Get value
58 * 56 *
59 * @return string 57 * @return string
60 */ 58 */
61 public function getValue() 59 public function getValue()
62 { 60 {
diff --git a/src/Wallabag/CoreBundle/Entity/TagsEntries.php b/src/Wallabag/CoreBundle/Entity/TagsEntries.php
index ad01cf57..6b0cea0d 100644
--- a/src/Wallabag/CoreBundle/Entity/TagsEntries.php
+++ b/src/Wallabag/CoreBundle/Entity/TagsEntries.php
@@ -35,12 +35,10 @@ class TagsEntries
35 */ 35 */
36 private $tagId; 36 private $tagId;
37 37
38
39
40 /** 38 /**
41 * Get id 39 * Get id
42 * 40 *
43 * @return integer 41 * @return integer
44 */ 42 */
45 public function getId() 43 public function getId()
46 { 44 {
@@ -50,7 +48,7 @@ class TagsEntries
50 /** 48 /**
51 * Set entryId 49 * Set entryId
52 * 50 *
53 * @param integer $entryId 51 * @param integer $entryId
54 * @return TagsEntries 52 * @return TagsEntries
55 */ 53 */
56 public function setEntryId($entryId) 54 public function setEntryId($entryId)
@@ -63,7 +61,7 @@ class TagsEntries
63 /** 61 /**
64 * Get entryId 62 * Get entryId
65 * 63 *
66 * @return integer 64 * @return integer
67 */ 65 */
68 public function getEntryId() 66 public function getEntryId()
69 { 67 {
@@ -73,7 +71,7 @@ class TagsEntries
73 /** 71 /**
74 * Set tagId 72 * Set tagId
75 * 73 *
76 * @param integer $tagId 74 * @param integer $tagId
77 * @return TagsEntries 75 * @return TagsEntries
78 */ 76 */
79 public function setTagId($tagId) 77 public function setTagId($tagId)
@@ -86,7 +84,7 @@ class TagsEntries
86 /** 84 /**
87 * Get tagId 85 * Get tagId
88 * 86 *
89 * @return integer 87 * @return integer
90 */ 88 */
91 public function getTagId() 89 public function getTagId()
92 { 90 {
diff --git a/src/Wallabag/CoreBundle/Entity/Users.php b/src/Wallabag/CoreBundle/Entity/Users.php
index 96867bd6..e0b1fb39 100644
--- a/src/Wallabag/CoreBundle/Entity/Users.php
+++ b/src/Wallabag/CoreBundle/Entity/Users.php
@@ -4,7 +4,6 @@ namespace Wallabag\CoreBundle\Entity;
4 4
5use Doctrine\ORM\Mapping as ORM; 5use Doctrine\ORM\Mapping as ORM;
6use Symfony\Component\Security\Core\User\UserInterface; 6use Symfony\Component\Security\Core\User\UserInterface;
7use Symfony\Component\Security\Core\User\EquatableInterface;
8use Symfony\Component\Security\Core\User\AdvancedUserInterface; 7use Symfony\Component\Security\Core\User\AdvancedUserInterface;
9 8
10/** 9/**
@@ -71,7 +70,7 @@ class Users implements AdvancedUserInterface, \Serializable
71 /** 70 /**
72 * Get id 71 * Get id
73 * 72 *
74 * @return integer 73 * @return integer
75 */ 74 */
76 public function getId() 75 public function getId()
77 { 76 {
@@ -81,7 +80,7 @@ class Users implements AdvancedUserInterface, \Serializable
81 /** 80 /**
82 * Set username 81 * Set username
83 * 82 *
84 * @param string $username 83 * @param string $username
85 * @return Users 84 * @return Users
86 */ 85 */
87 public function setUsername($username) 86 public function setUsername($username)
@@ -94,7 +93,7 @@ class Users implements AdvancedUserInterface, \Serializable
94 /** 93 /**
95 * Get username 94 * Get username
96 * 95 *
97 * @return string 96 * @return string
98 */ 97 */
99 public function getUsername() 98 public function getUsername()
100 { 99 {
@@ -120,7 +119,7 @@ class Users implements AdvancedUserInterface, \Serializable
120 /** 119 /**
121 * Set password 120 * Set password
122 * 121 *
123 * @param string $password 122 * @param string $password
124 * @return Users 123 * @return Users
125 */ 124 */
126 public function setPassword($password) 125 public function setPassword($password)
@@ -133,7 +132,7 @@ class Users implements AdvancedUserInterface, \Serializable
133 /** 132 /**
134 * Get password 133 * Get password
135 * 134 *
136 * @return string 135 * @return string
137 */ 136 */
138 public function getPassword() 137 public function getPassword()
139 { 138 {
@@ -143,7 +142,7 @@ class Users implements AdvancedUserInterface, \Serializable
143 /** 142 /**
144 * Set name 143 * Set name
145 * 144 *
146 * @param string $name 145 * @param string $name
147 * @return Users 146 * @return Users
148 */ 147 */
149 public function setName($name) 148 public function setName($name)
@@ -156,7 +155,7 @@ class Users implements AdvancedUserInterface, \Serializable
156 /** 155 /**
157 * Get name 156 * Get name
158 * 157 *
159 * @return string 158 * @return string
160 */ 159 */
161 public function getName() 160 public function getName()
162 { 161 {
@@ -166,7 +165,7 @@ class Users implements AdvancedUserInterface, \Serializable
166 /** 165 /**
167 * Set email 166 * Set email
168 * 167 *
169 * @param string $email 168 * @param string $email
170 * @return Users 169 * @return Users
171 */ 170 */
172 public function setEmail($email) 171 public function setEmail($email)
@@ -179,7 +178,7 @@ class Users implements AdvancedUserInterface, \Serializable
179 /** 178 /**
180 * Get email 179 * Get email
181 * 180 *
182 * @return string 181 * @return string
183 */ 182 */
184 public function getEmail() 183 public function getEmail()
185 { 184 {
@@ -208,7 +207,7 @@ class Users implements AdvancedUserInterface, \Serializable
208 */ 207 */
209 public function unserialize($serialized) 208 public function unserialize($serialized)
210 { 209 {
211 list ( 210 list(
212 $this->id, 211 $this->id,
213 ) = unserialize($serialized); 212 ) = unserialize($serialized);
214 } 213 }
diff --git a/src/Wallabag/CoreBundle/Entity/UsersConfig.php b/src/Wallabag/CoreBundle/Entity/UsersConfig.php
index 26fb44ee..0742edbc 100644
--- a/src/Wallabag/CoreBundle/Entity/UsersConfig.php
+++ b/src/Wallabag/CoreBundle/Entity/UsersConfig.php
@@ -42,12 +42,10 @@ class UsersConfig
42 */ 42 */
43 private $value; 43 private $value;
44 44
45
46
47 /** 45 /**
48 * Get id 46 * Get id
49 * 47 *
50 * @return integer 48 * @return integer
51 */ 49 */
52 public function getId() 50 public function getId()
53 { 51 {
@@ -57,7 +55,7 @@ class UsersConfig
57 /** 55 /**
58 * Set userId 56 * Set userId
59 * 57 *
60 * @param string $userId 58 * @param string $userId
61 * @return UsersConfig 59 * @return UsersConfig
62 */ 60 */
63 public function setUserId($userId) 61 public function setUserId($userId)
@@ -70,7 +68,7 @@ class UsersConfig
70 /** 68 /**
71 * Get userId 69 * Get userId
72 * 70 *
73 * @return string 71 * @return string
74 */ 72 */
75 public function getUserId() 73 public function getUserId()
76 { 74 {
@@ -80,7 +78,7 @@ class UsersConfig
80 /** 78 /**
81 * Set name 79 * Set name
82 * 80 *
83 * @param string $name 81 * @param string $name
84 * @return UsersConfig 82 * @return UsersConfig
85 */ 83 */
86 public function setName($name) 84 public function setName($name)
@@ -93,7 +91,7 @@ class UsersConfig
93 /** 91 /**
94 * Get name 92 * Get name
95 * 93 *
96 * @return string 94 * @return string
97 */ 95 */
98 public function getName() 96 public function getName()
99 { 97 {
@@ -103,7 +101,7 @@ class UsersConfig
103 /** 101 /**
104 * Set value 102 * Set value
105 * 103 *
106 * @param string $value 104 * @param string $value
107 * @return UsersConfig 105 * @return UsersConfig
108 */ 106 */
109 public function setValue($value) 107 public function setValue($value)
@@ -116,7 +114,7 @@ class UsersConfig
116 /** 114 /**
117 * Get value 115 * Get value
118 * 116 *
119 * @return string 117 * @return string
120 */ 118 */
121 public function getValue() 119 public function getValue()
122 { 120 {