2015-01-22 16:18:56 +00:00
|
|
|
<?php
|
|
|
|
|
2015-01-23 15:28:37 +00:00
|
|
|
namespace Wallabag\CoreBundle\Entity;
|
2015-01-22 16:18:56 +00:00
|
|
|
|
|
|
|
use Doctrine\ORM\Mapping as ORM;
|
2015-02-20 16:20:12 +00:00
|
|
|
use JMS\Serializer\Annotation\XmlRoot;
|
2015-01-22 16:18:56 +00:00
|
|
|
|
|
|
|
/**
|
2015-02-06 17:15:19 +00:00
|
|
|
* Tag
|
2015-01-22 16:18:56 +00:00
|
|
|
*
|
2015-02-20 16:20:12 +00:00
|
|
|
* @XmlRoot("tag")
|
2015-02-06 17:15:19 +00:00
|
|
|
* @ORM\Table(name="tag")
|
2015-02-20 16:20:12 +00:00
|
|
|
* @ORM\Entity(repositoryClass="Wallabag\CoreBundle\Repository\TagRepository")
|
2015-01-22 16:18:56 +00:00
|
|
|
*/
|
2015-02-06 17:15:19 +00:00
|
|
|
class Tag
|
2015-01-22 16:18:56 +00:00
|
|
|
{
|
|
|
|
/**
|
|
|
|
* @var integer
|
|
|
|
*
|
2015-02-06 17:15:19 +00:00
|
|
|
* @ORM\Column(name="id", type="integer")
|
2015-01-22 16:18:56 +00:00
|
|
|
* @ORM\Id
|
2015-02-06 17:15:19 +00:00
|
|
|
* @ORM\GeneratedValue(strategy="AUTO")
|
2015-01-22 16:18:56 +00:00
|
|
|
*/
|
|
|
|
private $id;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @var string
|
|
|
|
*
|
2015-02-06 17:15:19 +00:00
|
|
|
* @ORM\Column(name="label", type="text")
|
2015-01-22 16:18:56 +00:00
|
|
|
*/
|
2015-02-06 17:15:19 +00:00
|
|
|
private $label;
|
2015-01-22 16:18:56 +00:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 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;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-02-06 17:15:19 +00:00
|
|
|
* Set label
|
2015-01-22 16:18:56 +00:00
|
|
|
*
|
2015-02-06 17:15:19 +00:00
|
|
|
* @param string $label
|
|
|
|
* @return Tag
|
2015-01-22 16:18:56 +00:00
|
|
|
*/
|
2015-02-06 17:15:19 +00:00
|
|
|
public function setLabel($label)
|
2015-01-22 16:18:56 +00:00
|
|
|
{
|
2015-02-06 17:15:19 +00:00
|
|
|
$this->label = $label;
|
2015-01-22 16:18:56 +00:00
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2015-02-06 17:15:19 +00:00
|
|
|
* Get label
|
2015-01-22 16:18:56 +00:00
|
|
|
*
|
2015-01-31 18:09:34 +00:00
|
|
|
* @return string
|
2015-01-22 16:18:56 +00:00
|
|
|
*/
|
2015-02-06 17:15:19 +00:00
|
|
|
public function getLabel()
|
2015-01-22 16:18:56 +00:00
|
|
|
{
|
2015-02-20 15:38:24 +00:00
|
|
|
return $this->label;
|
2015-01-22 16:18:56 +00:00
|
|
|
}
|
|
|
|
}
|