<?php
namespace App\Entity;
use App\Repository\IssueTopicRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: IssueTopicRepository::class)]
class IssueTopic
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $name;
#[ORM\Column(type: 'string', length: 255, nullable: true)]
private $slug;
#[ORM\Column(type: 'integer', nullable: true)]
private $wordpressId;
public function getId(): ?int
{
return $this->id;
}
public function getName(): ?string
{
return html_entity_decode($this->name);
}
public function setName(?string $name): self
{
$this->name = $name;
return $this;
}
public function getSlug(): ?string
{
return $this->slug;
}
public function setSlug(?string $slug): self
{
$this->slug = $slug;
return $this;
}
public function getWordpressId(): ?int
{
return $this->wordpressId;
}
public function setWordpressId(?int $wordpressId): self
{
$this->wordpressId = $wordpressId;
return $this;
}
public function toString()
{
return html_entity_decode($this->name);
}
public function __toString()
{
return $this->toString();
}
}