src/Entity/Announcement.php line 11

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