src/App/Entity/System/SchoolMobileEmbeddable.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity\System;
  3. use App\Model\Mobile\Shortcut;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Embeddable()
  7.  */
  8. class SchoolMobileEmbeddable
  9. {
  10.     /**
  11.      * @var array|Shortcut[]
  12.      *
  13.      * @ORM\Column(
  14.      *     type = "shortcut_array",
  15.      *     nullable = true,
  16.      * )
  17.      */
  18.     protected ?array $shortcuts = [];
  19.     /**
  20.      * @var string|null
  21.      *
  22.      * @ORM\Column(
  23.      *     type = "string",
  24.      *     nullable = true,
  25.      * )
  26.      */
  27.     protected ?string $directoryUrl null;
  28.     /**
  29.      * @return array|Shortcut[]
  30.      */
  31.     public function getShortcuts(): array
  32.     {
  33.         return $this->shortcuts ?? [];
  34.     }
  35.     /**
  36.      * @param array|Shortcut[]|null $shortcuts
  37.      * @return $this
  38.      */
  39.     public function setShortcuts(?array $shortcuts): self
  40.     {
  41.         $this->shortcuts $shortcuts ?? [];
  42.         return $this;
  43.     }
  44.     /**
  45.      * @return string|null
  46.      */
  47.     public function getDirectoryUrl(): ?string
  48.     {
  49.         return $this->directoryUrl;
  50.     }
  51.     /**
  52.      * @param string|null $directoryUrl
  53.      * @return $this
  54.      */
  55.     public function setDirectoryUrl(?string $directoryUrl): self
  56.     {
  57.         $this->directoryUrl $directoryUrl;
  58.         return $this;
  59.     }
  60. }