src/Entity/IssueArea.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\IssueAreaRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassIssueAreaRepository::class)]
  8. class IssueArea
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length255nullabletrue)]
  15.     private $name;
  16.     #[ORM\Column(type'string'length255nullabletrue)]
  17.     private $slug;
  18.     #[ORM\Column(type'integer'nullabletrue)]
  19.     private $wordpressId;
  20.     public function getId(): ?int
  21.     {
  22.         return $this->id;
  23.     }
  24.     public function getName(): ?string
  25.     {
  26.         return $this->name;
  27.     }
  28.     public function setName(?string $name): self
  29.     {
  30.         $this->name $name;
  31.         return $this;
  32.     }
  33.     public function getSlug(): ?string
  34.     {
  35.         return $this->slug;
  36.     }
  37.     public function setSlug(?string $slug): self
  38.     {
  39.         $this->slug $slug;
  40.         return $this;
  41.     }
  42.     public function getWordpressId(): ?int
  43.     {
  44.         return $this->wordpressId;
  45.     }
  46.     public function setWordpressId(?int $wordpressId): self
  47.     {
  48.         $this->wordpressId $wordpressId;
  49.         return $this;
  50.     }
  51.     public function toString()
  52.     {
  53.         if ($this->name) {
  54.             return html_entity_decode($this->name);
  55.         }
  56.         return '';
  57.     }
  58.     public function __toString()
  59.     {
  60.         return $this->toString();
  61.     }
  62. }