]> git.immae.eu Git - github/wallabag/wallabag.git/blame - src/Wallabag/CoreBundle/Entity/Config.php
Fix indentation in templates
[github/wallabag/wallabag.git] / src / Wallabag / CoreBundle / Entity / Config.php
CommitLineData
9d50517c
NL
1<?php
2
ad4d1caa 3namespace Wallabag\CoreBundle\Entity;
9d50517c
NL
4
5use Doctrine\ORM\Mapping as ORM;
55f58c9c 6use Symfony\Component\Validator\Constraints as Assert;
9d50517c
NL
7
8/**
9 * Config
10 *
11 * @ORM\Table(name="config")
12 * @ORM\Entity
13 */
14class Config
15{
16 /**
17 * @var integer
18 *
55f58c9c 19 * @ORM\Column(name="id", type="integer")
9d50517c 20 * @ORM\Id
55f58c9c 21 * @ORM\GeneratedValue(strategy="AUTO")
9d50517c
NL
22 */
23 private $id;
24
25 /**
26 * @var string
27 *
55f58c9c
J
28 * @Assert\NotBlank()
29 * @ORM\Column(name="name", type="string", nullable=false)
9d50517c
NL
30 */
31 private $name;
32
33 /**
34 * @var string
35 *
36 * @ORM\Column(name="value", type="blob", nullable=true)
37 */
38 private $value;
39
9d50517c
NL
40 /**
41 * Get id
42 *
7df80cb3 43 * @return integer
9d50517c
NL
44 */
45 public function getId()
46 {
47 return $this->id;
48 }
49
50 /**
51 * Set name
52 *
7df80cb3 53 * @param string $name
9d50517c
NL
54 * @return Config
55 */
56 public function setName($name)
57 {
58 $this->name = $name;
59
60 return $this;
61 }
62
63 /**
64 * Get name
65 *
7df80cb3 66 * @return string
9d50517c
NL
67 */
68 public function getName()
69 {
70 return $this->name;
71 }
72
73 /**
74 * Set value
75 *
7df80cb3 76 * @param string $value
9d50517c
NL
77 * @return Config
78 */
79 public function setValue($value)
80 {
81 $this->value = $value;
82
83 return $this;
84 }
85
86 /**
87 * Get value
88 *
7df80cb3 89 * @return string
9d50517c
NL
90 */
91 public function getValue()
92 {
93 return $this->value;
94 }
95}