]> git.immae.eu Git - github/wallabag/wallabag.git/blob - src/Wallabag/CoreBundle/Entity/UsersConfig.php
Fix indentation in templates
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / UsersConfig.php
1 <?php
2
3 namespace Wallabag\CoreBundle\Entity;
4
5 use Doctrine\ORM\Mapping as ORM;
6
7 /**
8 * UsersConfig
9 *
10 * @ORM\Table(name="users_config")
11 * @ORM\Entity
12 */
13 class UsersConfig
14 {
15 /**
16 * @var integer
17 *
18 * @ORM\Column(name="id", type="integer", nullable=true)
19 * @ORM\Id
20 * @ORM\GeneratedValue(strategy="IDENTITY")
21 */
22 private $id;
23
24 /**
25 * @ORM\ManyToOne(targetEntity="User", inversedBy="config")
26 */
27 private $user;
28
29 /**
30 * @var string
31 *
32 * @ORM\Column(name="name", type="text", nullable=true)
33 */
34 private $name;
35
36 /**
37 * @var string
38 *
39 * @ORM\Column(name="value", type="text", nullable=true)
40 */
41 private $value;
42
43 /**
44 * Get id
45 *
46 * @return integer
47 */
48 public function getId()
49 {
50 return $this->id;
51 }
52
53 /**
54 * Set name
55 *
56 * @param string $name
57 * @return UsersConfig
58 */
59 public function setName($name)
60 {
61 $this->name = $name;
62
63 return $this;
64 }
65
66 /**
67 * Get name
68 *
69 * @return string
70 */
71 public function getName()
72 {
73 return $this->name;
74 }
75
76 /**
77 * Set value
78 *
79 * @param string $value
80 * @return UsersConfig
81 */
82 public function setValue($value)
83 {
84 $this->value = $value;
85
86 return $this;
87 }
88
89 /**
90 * Get value
91 *
92 * @return string
93 */
94 public function getValue()
95 {
96 return $this->value;
97 }
98
99 /**
100 * Set user
101 *
102 * @param \Wallabag\CoreBundle\Entity\User $user
103 * @return UsersConfig
104 */
105 public function setUser(\Wallabag\CoreBundle\Entity\User $user = null)
106 {
107 $this->user = $user;
108
109 return $this;
110 }
111
112 /**
113 * Get user
114 *
115 * @return \Wallabag\CoreBundle\Entity\User
116 */
117 public function getUser()
118 {
119 return $this->user;
120 }
121 }