<?php
namespace Bundles\Messenger\Entity;
use Doctrine\ORM\Mapping as ORM;
use Bundles\Messenger\Repository\ArticleTagRepository;
/**
* @ORM\Entity(repositoryClass=ArticleTagRepository::class)
*/
class ArticleTag
{
/**
* @ORM\Id
* @ORM\GeneratedValue
* @ORM\Column(type="integer")
*/
private $id;
/**
* @ORM\Column(type="string", length=255)
*/
private $name;
/**
* @ORM\Column(type="string", length=20, nullable=true)
*/
private $color;
/**
* @ORM\Column(type="boolean")
*/
private $status = true;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return $this->name;
}
public function setName(string $name): self
{
$this->name = $name;
return $this;
}
public function getColor(): ?string
{
return $this->color;
}
public function setColor(?string $color): self
{
$this->color = $color;
return $this;
}
public function isStatus(): ?bool
{
return $this->status;
}
public function setStatus(bool $status): self
{
$this->status = $status;
return $this;
}
public function __toString() {
return $this->getName();
}
}