src/Entity/Policy.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\PolicyRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=PolicyRepository::class)
  7.  */
  8. class Policy
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $title;
  20.     /**
  21.      * @ORM\Column(type="text")
  22.      */
  23.     private $content;
  24.     public function __construct() {}
  25.     public function getId(): ?int
  26.     {
  27.         return $this->id;
  28.     }
  29.     public function getTitle(): ?string
  30.     {
  31.         return $this->title;
  32.     }
  33.     public function setTitle(string $title): self
  34.     {
  35.         $this->title $title;
  36.         return $this;
  37.     }
  38.     public function getContent(): ?string
  39.     {
  40.         return $this->content;
  41.     }
  42.     public function setContent(string $content): self
  43.     {
  44.         $this->content $content;
  45.         return $this;
  46.     }
  47. }