wallabag/src/Wallabag/CoreBundle/Entity/Config.php

96 lines
1.4 KiB
PHP
Raw Normal View History

2015-01-22 16:18:56 +00:00
<?php
namespace Wallabag\CoreBundle\Entity;
2015-01-22 16:18:56 +00:00
use Doctrine\ORM\Mapping as ORM;
2015-02-11 20:06:32 +00:00
use Symfony\Component\Validator\Constraints as Assert;
2015-01-22 16:18:56 +00:00
/**
* Config
*
* @ORM\Table(name="config")
* @ORM\Entity
*/
class Config
{
/**
* @var integer
*
2015-02-11 20:06:32 +00:00
* @ORM\Column(name="id", type="integer")
2015-01-22 16:18:56 +00:00
* @ORM\Id
2015-02-11 20:06:32 +00:00
* @ORM\GeneratedValue(strategy="AUTO")
2015-01-22 16:18:56 +00:00
*/
private $id;
/**
* @var string
*
2015-02-11 20:06:32 +00:00
* @Assert\NotBlank()
* @ORM\Column(name="name", type="string", nullable=false)
2015-01-22 16:18:56 +00:00
*/
private $name;
/**
* @var string
*
* @ORM\Column(name="value", type="blob", nullable=true)
*/
private $value;
/**
* Get id
*
2015-01-31 18:09:34 +00:00
* @return integer
2015-01-22 16:18:56 +00:00
*/
public function getId()
{
return $this->id;
}
/**
* Set name
*
2015-01-31 18:09:34 +00:00
* @param string $name
2015-01-22 16:18:56 +00:00
* @return Config
*/
public function setName($name)
{
$this->name = $name;
return $this;
}
/**
* Get name
*
2015-01-31 18:09:34 +00:00
* @return string
2015-01-22 16:18:56 +00:00
*/
public function getName()
{
return $this->name;
}
/**
* Set value
*
2015-01-31 18:09:34 +00:00
* @param string $value
2015-01-22 16:18:56 +00:00
* @return Config
*/
public function setValue($value)
{
$this->value = $value;
return $this;
}
/**
* Get value
*
2015-01-31 18:09:34 +00:00
* @return string
2015-01-22 16:18:56 +00:00
*/
public function getValue()
{
return $this->value;
}
}