<?php
namespace App\Entity\System;
use App\Model\Mobile\Shortcut;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Embeddable()
*/
class SchoolMobileEmbeddable
{
/**
* @var array|Shortcut[]
*
* @ORM\Column(
* type = "shortcut_array",
* nullable = true,
* )
*/
protected ?array $shortcuts = [];
/**
* @var string|null
*
* @ORM\Column(
* type = "string",
* nullable = true,
* )
*/
protected ?string $directoryUrl = null;
/**
* @return array|Shortcut[]
*/
public function getShortcuts(): array
{
return $this->shortcuts ?? [];
}
/**
* @param array|Shortcut[]|null $shortcuts
* @return $this
*/
public function setShortcuts(?array $shortcuts): self
{
$this->shortcuts = $shortcuts ?? [];
return $this;
}
/**
* @return string|null
*/
public function getDirectoryUrl(): ?string
{
return $this->directoryUrl;
}
/**
* @param string|null $directoryUrl
* @return $this
*/
public function setDirectoryUrl(?string $directoryUrl): self
{
$this->directoryUrl = $directoryUrl;
return $this;
}
}