src/Controller/Objects/Page.php line 44

Open in your IDE?
  1. <?php
  2. /**
  3.  * Created by PhpStorm.
  4.  * User: dkouril
  5.  * Date: 25.3.2019
  6.  * Time: 9:43
  7.  */
  8. namespace App\Controller\Objects;
  9. class Page
  10. {
  11.     /**
  12.      * @var bool
  13.      */
  14.     private string $title;
  15.     /**
  16.      * @var Picture
  17.      */
  18.     private Picture $picture;
  19.     /**
  20.      * @return bool
  21.      */
  22.     public function isTitle(): bool|string
  23.     {
  24.         return $this->title;
  25.     }
  26.     /**
  27.      * @param bool $title
  28.      */
  29.     public function setTitle(bool|string $title): void
  30.     {
  31.         $this->title $title;
  32.     }
  33.     /**
  34.      * @return Picture
  35.      */
  36.     public function getPicture(): Picture
  37.     {
  38.         return $this->picture;
  39.     }
  40.     /**
  41.      * @param Picture $picture
  42.      */
  43.     public function setPicture(Picture $picture): void
  44.     {
  45.         $this->picture $picture;
  46.     }
  47.     
  48. }