src/Entity/PageNotFound.php line 15

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\PageNotFoundRepository;
  5. use Symfony\Component\HttpFoundation\File\File;
  6. use Vich\UploaderBundle\Mapping\Annotation as Vich;
  7. use Symfony\Component\Validator\Constraints as Assert;
  8. /**
  9.  * @ORM\Entity(repositoryClass=PageNotFoundRepository::class)
  10.  * @Vich\Uploadable
  11.  */
  12. class PageNotFound
  13. {
  14.     const UPLOAD_MAX_SIZE "2M";
  15.     const UPLOAD_MIMES = [
  16.         "image/png",
  17.         "image/jpeg",
  18.         "image/svg+xml"
  19.     ];
  20.     /**
  21.      * @ORM\Id
  22.      * @ORM\GeneratedValue
  23.      * @ORM\Column(type="integer")
  24.      */
  25.     private $id;
  26.     /**
  27.      * @ORM\Column(type="string", length=255, nullable=true)
  28.      */
  29.     private $title;
  30.     /**
  31.      * @ORM\Column(type="text", nullable=true)
  32.      */
  33.     private $message;
  34.     public function __construct() {}
  35.     public function getId(): ?int
  36.     {
  37.         return $this->id;
  38.     }
  39.     public function getTitle(): ?string
  40.     {
  41.         return $this->title;
  42.     }
  43.     public function setTitle(?string $title): self
  44.     {
  45.         $this->title $title;
  46.         return $this;
  47.     }
  48.     public function getMessage(): ?string
  49.     {
  50.         return $this->message;
  51.     }
  52.     public function setMessage(?string $message): self
  53.     {
  54.         $this->message $message;
  55.         return $this;
  56.     }
  57. }