fix phpcs findings

This commit is contained in:
Dennis Eichhorn 2019-09-12 19:48:00 +02:00
parent 53fa3aa631
commit 3c7ac81c56
33 changed files with 397 additions and 393 deletions

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Admin\Install * @package Modules\Calendar\Admin\Install
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DatabasePool;
/** /**
* Navigation class. * Navigation class.
* *
* @package Modules\Calendar\Admin\Install * @package Modules\Calendar\Admin\Install
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Navigation class Navigation
{ {
@ -34,7 +34,7 @@ class Navigation
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function install(string $path, DatabasePool $dbPool) : void public static function install(string $path, DatabasePool $dbPool) : void
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Admin * @package Modules\Calendar\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Module\InstallerAbstract;
/** /**
* Installer class. * Installer class.
* *
* @package Modules\Calendar\Admin * @package Modules\Calendar\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Installer extends InstallerAbstract class Installer extends InstallerAbstract
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Admin * @package Modules\Calendar\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Module\StatusAbstract;
/** /**
* Navigation class. * Navigation class.
* *
* @package Modules\Calendar\Admin * @package Modules\Calendar\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Status extends StatusAbstract class Status extends StatusAbstract
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Admin * @package Modules\Calendar\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Module\UninstallerAbstract;
/** /**
* Uninstaller class. * Uninstaller class.
* *
* @package Modules\Calendar\Admin * @package Modules\Calendar\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Uninstaller extends UninstallerAbstract class Uninstaller extends UninstallerAbstract
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Admin * @package Modules\Calendar\Admin
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Module\UpdaterAbstract;
/** /**
* Updater class. * Updater class.
* *
* @package Modules\Calendar\Admin * @package Modules\Calendar\Admin
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Updater extends UpdaterAbstract class Updater extends UpdaterAbstract
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar * @package Modules\Calendar
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -26,21 +26,23 @@ use phpOMS\Views\View;
/** /**
* Calendar controller class. * Calendar controller class.
* *
* @package Modules\Calendar * @package Modules\Calendar
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class BackendController extends Controller final class BackendController extends Controller
{ {
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
* *
* @return RenderableInterface * @return RenderableInterface
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewCalendarDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewCalendarDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -65,13 +67,15 @@ final class BackendController extends Controller
} }
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
* *
* @return RenderableInterface * @return RenderableInterface
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar * @package Modules\Calendar
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -20,10 +20,10 @@ use phpOMS\Module\WebInterface;
/** /**
* Calendar controller class. * Calendar controller class.
* *
* @package Modules\Calendar * @package Modules\Calendar
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Controller extends ModuleAbstract implements WebInterface class Controller extends ModuleAbstract implements WebInterface
{ {
@ -31,7 +31,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module path. * Module path.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
public const MODULE_PATH = __DIR__ . '/../'; public const MODULE_PATH = __DIR__ . '/../';
@ -39,7 +39,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module version. * Module version.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
public const MODULE_VERSION = '1.0.0'; public const MODULE_VERSION = '1.0.0';
@ -47,7 +47,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module name. * Module name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
public const MODULE_NAME = 'Calendar'; public const MODULE_NAME = 'Calendar';
@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module id. * Module id.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
public const MODULE_ID = 1000900000; public const MODULE_ID = 1000900000;
@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Providing. * Providing.
* *
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $providing = []; protected static array $providing = [];
@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Dependencies. * Dependencies.
* *
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $dependencies = []; protected static array $dependencies = [];

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Accept status enum. * Accept status enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class AcceptStatus extends Enum abstract class AcceptStatus extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Available status enum. * Available status enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class AvailableStatus extends Enum abstract class AvailableStatus extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\SmartDateTime;
/** /**
* Calendar class. * Calendar class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Calendar class Calendar
{ {
@ -30,7 +30,7 @@ class Calendar
/** /**
* Calendar ID. * Calendar ID.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $id = 0; private int $id = 0;
@ -38,7 +38,7 @@ class Calendar
/** /**
* Name. * Name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $name = ''; private string $name = '';
@ -46,7 +46,7 @@ class Calendar
/** /**
* Description. * Description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $description = ''; private string $description = '';
@ -54,7 +54,7 @@ class Calendar
/** /**
* Created at. * Created at.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $createdAt = null; private ?\DateTime $createdAt = null;
@ -62,7 +62,7 @@ class Calendar
/** /**
* Current date of the calendar. * Current date of the calendar.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $date = null; private ?\DateTime $date = null;
@ -70,7 +70,7 @@ class Calendar
/** /**
* Events. * Events.
* *
* @var array<int, \Modules\Calendar\Models\Event> * @var array<int, \Modules\Calendar\Models\Event>
* @since 1.0.0 * @since 1.0.0
*/ */
private $events = []; private $events = [];
@ -78,7 +78,7 @@ class Calendar
/** /**
* Constructor. * Constructor.
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct() public function __construct()
{ {
@ -89,7 +89,7 @@ class Calendar
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -99,7 +99,7 @@ class Calendar
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getName() : string public function getName() : string
{ {
@ -109,7 +109,7 @@ class Calendar
/** /**
* @param string $name Calendar name/title * @param string $name Calendar name/title
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setName(string $name) : void public function setName(string $name) : void
{ {
@ -119,7 +119,7 @@ class Calendar
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescription() : string public function getDescription() : string
{ {
@ -131,7 +131,7 @@ class Calendar
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescription(string $desc) : void public function setDescription(string $desc) : void
{ {
@ -143,7 +143,7 @@ class Calendar
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addEvent(Event $event) : int public function addEvent(Event $event) : int
{ {
@ -159,7 +159,7 @@ class Calendar
/** /**
* @return Event[] * @return Event[]
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getEvents() : array public function getEvents() : array
{ {
@ -171,7 +171,7 @@ class Calendar
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function removeEvent(int $id) : bool public function removeEvent(int $id) : bool
{ {
@ -189,7 +189,7 @@ class Calendar
* *
* @return Event * @return Event
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getEvent(int $id) : Event public function getEvent(int $id) : Event
{ {
@ -199,7 +199,7 @@ class Calendar
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTime public function getCreatedAt() : \DateTime
{ {
@ -211,7 +211,7 @@ class Calendar
* *
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDate() : \DateTime public function getDate() : \DateTime
{ {
@ -223,7 +223,7 @@ class Calendar
* *
* @param \DateTime $date Current date * @param \DateTime $date Current date
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDate(\DateTime $date) : void public function setDate(\DateTime $date) : void
{ {
@ -237,7 +237,7 @@ class Calendar
* *
* @return Event[] * @return Event[]
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getEventByDate(\DateTime $date) : array public function getEventByDate(\DateTime $date) : array
{ {
@ -258,7 +258,7 @@ class Calendar
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function hasEventOnDate(\DateTime $date) : bool public function hasEventOnDate(\DateTime $date) : bool
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
* @todo only load events of 3 month or 1 year?! * @todo only load events of 3 month or 1 year?!
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -20,17 +20,17 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class CalendarMapper extends DataMapperAbstract final class CalendarMapper extends DataMapperAbstract
{ {
/** /**
* Class name. * Class name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $CLASS = __CLASS__; protected static $CLASS = __CLASS__;
@ -38,7 +38,7 @@ final class CalendarMapper extends DataMapperAbstract
/** /**
* Columns. * Columns.
* *
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
@ -51,7 +51,7 @@ final class CalendarMapper extends DataMapperAbstract
/** /**
* Has many relation. * Has many relation.
* *
* @var array<string, array<string, null|string>> * @var array<string, array<string, null|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $hasMany = [ protected static array $hasMany = [
@ -66,7 +66,7 @@ final class CalendarMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'calendar'; protected static string $table = 'calendar';
@ -74,7 +74,7 @@ final class CalendarMapper extends DataMapperAbstract
/** /**
* Created at. * Created at.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'calendar_created_at'; protected static string $createdAt = 'calendar_created_at';
@ -82,7 +82,7 @@ final class CalendarMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'calendar_id'; protected static string $primaryField = 'calendar_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -21,10 +21,10 @@ use phpOMS\Stdlib\Base\Location;
/** /**
* Event class. * Event class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Event class Event
{ {
@ -32,7 +32,7 @@ class Event
/** /**
* Calendar ID. * Calendar ID.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $id = 0; private int $id = 0;
@ -40,7 +40,7 @@ class Event
/** /**
* Name. * Name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $name = ''; private string $name = '';
@ -48,7 +48,7 @@ class Event
/** /**
* Description. * Description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $description = ''; private string $description = '';
@ -56,7 +56,7 @@ class Event
/** /**
* Created. * Created.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $createdAt = null; private ?\DateTime $createdAt = null;
@ -64,7 +64,7 @@ class Event
/** /**
* Creator. * Creator.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdBy = 0; private $createdBy = 0;
@ -74,7 +74,7 @@ class Event
* *
* Single event or a template (templates have a repeating) * Single event or a template (templates have a repeating)
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $type = EventType::SINGLE; private int $type = EventType::SINGLE;
@ -84,7 +84,7 @@ class Event
* *
* Active, inactive etc. * Active, inactive etc.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $status = EventStatus::ACTIVE; private int $status = EventStatus::ACTIVE;
@ -92,7 +92,7 @@ class Event
/** /**
* Schedule * Schedule
* *
* @var null|int|Schedule * @var null|int|Schedule
* @since 1.0.0 * @since 1.0.0
*/ */
private $schedule = null; private $schedule = null;
@ -100,7 +100,7 @@ class Event
/** /**
* Location of the event. * Location of the event.
* *
* @var Location * @var Location
* @since 1.0.0 * @since 1.0.0
*/ */
private ?Location $location = null; private ?Location $location = null;
@ -108,7 +108,7 @@ class Event
/** /**
* Calendar * Calendar
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $calendar = null; private $calendar = null;
@ -116,7 +116,7 @@ class Event
/** /**
* People. * People.
* *
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
private array $people = []; private array $people = [];
@ -124,7 +124,7 @@ class Event
/** /**
* Constructor. * Constructor.
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct() public function __construct()
{ {
@ -136,7 +136,7 @@ class Event
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -146,7 +146,7 @@ class Event
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getName() : string public function getName() : string
{ {
@ -156,7 +156,7 @@ class Event
/** /**
* @return Account[] * @return Account[]
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getPeople() : array public function getPeople() : array
{ {
@ -168,7 +168,7 @@ class Event
* *
* @return Account * @return Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getPerson(int $id) : Account public function getPerson(int $id) : Account
{ {
@ -180,7 +180,7 @@ class Event
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addPerson(Account $person) : void public function addPerson(Account $person) : void
{ {
@ -194,7 +194,7 @@ class Event
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function removePerson(int $id) : bool public function removePerson(int $id) : bool
{ {
@ -210,7 +210,7 @@ class Event
/** /**
* @param string $name Event name/title * @param string $name Event name/title
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setName(string $name) : void public function setName(string $name) : void
{ {
@ -220,7 +220,7 @@ class Event
/** /**
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescription() : string public function getDescription() : string
{ {
@ -230,7 +230,7 @@ class Event
/** /**
* @param string $desc Event description * @param string $desc Event description
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescription(string $desc) : void public function setDescription(string $desc) : void
{ {
@ -240,7 +240,7 @@ class Event
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTime public function getCreatedAt() : \DateTime
{ {
@ -250,7 +250,7 @@ class Event
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedBy() : int public function getCreatedBy() : int
{ {
@ -260,7 +260,7 @@ class Event
/** /**
* @param $createdBy Creator * @param $createdBy Creator
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy(int $createdBy) : void public function setCreatedBy(int $createdBy) : void
{ {
@ -271,7 +271,7 @@ class Event
/** /**
* @param Location $location Event location * @param Location $location Event location
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setLocation(Location $location) : void public function setLocation(Location $location) : void
{ {
@ -281,7 +281,7 @@ class Event
/** /**
* @return Location * @return Location
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getLocation() : Location public function getLocation() : Location
{ {
@ -291,7 +291,7 @@ class Event
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCalendar() : int public function getCalendar() : int
{ {
@ -301,7 +301,7 @@ class Event
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getType() : int public function getType() : int
{ {
@ -311,7 +311,7 @@ class Event
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStatus() : int public function getStatus() : int
{ {
@ -321,7 +321,7 @@ class Event
/** /**
* @param int $calendar Calendar * @param int $calendar Calendar
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCalendar(int $calendar) : void public function setCalendar(int $calendar) : void
{ {
@ -331,7 +331,7 @@ class Event
/** /**
* @return Schedule * @return Schedule
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getSchedule() : Schedule public function getSchedule() : Schedule
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class EventMapper extends DataMapperAbstract final class EventMapper extends DataMapperAbstract
{ {
@ -30,7 +30,7 @@ final class EventMapper extends DataMapperAbstract
/** /**
* Columns. * Columns.
* *
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
@ -49,7 +49,7 @@ final class EventMapper extends DataMapperAbstract
/** /**
* Has one relation. * Has one relation.
* *
* @var array<string, array<string, string>> * @var array<string, array<string, string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $ownsOne = [ protected static array $ownsOne = [
@ -62,7 +62,7 @@ final class EventMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'calendar_event'; protected static string $table = 'calendar_event';
@ -70,7 +70,7 @@ final class EventMapper extends DataMapperAbstract
/** /**
* Created at. * Created at.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'calendar_event_created_at'; protected static string $createdAt = 'calendar_event_created_at';
@ -78,7 +78,7 @@ final class EventMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'calendar_event_id'; protected static string $primaryField = 'calendar_event_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Event type enum. * Event type enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class EventStatus extends Enum abstract class EventStatus extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -17,17 +17,17 @@ namespace Modules\Calendar\Models;
/** /**
* Event template class. * Event template class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class EventTemplate extends Event class EventTemplate extends Event
{ {
/** /**
* Type. * Type.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $type = EventType::TEMPLATE; private int $type = EventType::TEMPLATE;

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Event type enum. * Event type enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class EventType extends Enum abstract class EventType extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Frequency interval type enum. * Frequency interval type enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class FrequencyInterval extends Enum abstract class FrequencyInterval extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Frequency relative type enum. * Frequency relative type enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class FrequencyRelative extends Enum abstract class FrequencyRelative extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Frequency type enum. * Frequency type enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class FrequencyType extends Enum abstract class FrequencyType extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Interval type type enum. * Interval type type enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class IntervalType extends Enum abstract class IntervalType extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -17,10 +17,10 @@ namespace Modules\Calendar\Models;
/** /**
* Calendar class. * Calendar class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class NullCalendar extends Calendar class NullCalendar extends Calendar
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -17,10 +17,10 @@ namespace Modules\Calendar\Models;
/** /**
* Null event class. * Null event class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class NullEvent extends Event class NullEvent extends Event
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -17,10 +17,10 @@ namespace Modules\Calendar\Models;
/** /**
* Schedule class. * Schedule class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class NullSchedule extends Schedule class NullSchedule extends Schedule
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar * @package Modules\Calendar
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Permision state enum. * Permision state enum.
* *
* @package Modules\Calendar * @package Modules\Calendar
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class PermissionState extends Enum abstract class PermissionState extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,17 +19,17 @@ use phpOMS\Stdlib\Base\Exception\InvalidEnumValue;
/** /**
* Schedule class. * Schedule class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
class Schedule class Schedule
{ {
/** /**
* Schedule ID. * Schedule ID.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $id = 0; private int $id = 0;
@ -37,7 +37,7 @@ class Schedule
/** /**
* Calendar uid. * Calendar uid.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $uid = ''; private string $uid = '';
@ -45,7 +45,7 @@ class Schedule
/** /**
* Schedule status. * Schedule status.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $status = ScheduleStatus::ACTIVE; private int $status = ScheduleStatus::ACTIVE;
@ -53,7 +53,7 @@ class Schedule
/** /**
* Frequency type. * Frequency type.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $freqType = FrequencyType::ONCE; private int $freqType = FrequencyType::ONCE;
@ -61,7 +61,7 @@ class Schedule
/** /**
* Frequency interval. * Frequency interval.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $freqInterval = FrequencyInterval::DAY; private int $freqInterval = FrequencyInterval::DAY;
@ -69,7 +69,7 @@ class Schedule
/** /**
* Frequency relative. * Frequency relative.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $relativeInternal = FrequencyRelative::FIRST; private int $relativeInternal = FrequencyRelative::FIRST;
@ -77,7 +77,7 @@ class Schedule
/** /**
* Interval type. * Interval type.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $intervalType = IntervalType::ABSOLUTE; private int $intervalType = IntervalType::ABSOLUTE;
@ -85,7 +85,7 @@ class Schedule
/** /**
* Recurrence factor. * Recurrence factor.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $recurrenceFactor = 0; private int $recurrenceFactor = 0;
@ -93,7 +93,7 @@ class Schedule
/** /**
* Start. * Start.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $start = null; private ?\DateTime $start = null;
@ -101,7 +101,7 @@ class Schedule
/** /**
* Duration. * Duration.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $duration = 3600; private int $duration = 3600;
@ -109,7 +109,7 @@ class Schedule
/** /**
* End. * End.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $end = null; private ?\DateTime $end = null;
@ -117,7 +117,7 @@ class Schedule
/** /**
* Created at. * Created at.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $createdAt = null; private ?\DateTime $createdAt = null;
@ -125,7 +125,7 @@ class Schedule
/** /**
* Created by. * Created by.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdBy = 0; private $createdBy = 0;
@ -133,7 +133,7 @@ class Schedule
/** /**
* Constructor. * Constructor.
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct() public function __construct()
{ {
@ -146,7 +146,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -156,7 +156,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStatus() : int public function getStatus() : int
{ {
@ -168,7 +168,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStatus(int $status) public function setStatus(int $status)
{ {
@ -184,7 +184,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getFreqType() : int public function getFreqType() : int
{ {
@ -196,7 +196,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setFreqType(int $freqType) public function setFreqType(int $freqType)
{ {
@ -212,7 +212,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getIntervalType() : int public function getIntervalType() : int
{ {
@ -224,7 +224,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setIntervalType(int $intervalType) public function setIntervalType(int $intervalType)
{ {
@ -240,7 +240,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getFrequencyRelative() : int public function getFrequencyRelative() : int
{ {
@ -252,7 +252,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setFrequencyRelative(int $relativeInterval) public function setFrequencyRelative(int $relativeInterval)
{ {
@ -270,7 +270,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setFreqInterval(int $freqInterval) public function setFreqInterval(int $freqInterval)
{ {
@ -286,7 +286,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getFreqInterval() : int public function getFreqInterval() : int
{ {
@ -296,7 +296,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getRecurrenceFactor() : int public function getRecurrenceFactor() : int
{ {
@ -308,7 +308,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setRecurrenceFactor(int $recurrence) public function setRecurrenceFactor(int $recurrence)
{ {
@ -320,7 +320,7 @@ class Schedule
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStart() : \DateTime public function getStart() : \DateTime
{ {
@ -332,7 +332,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStart(\DateTime $start) public function setStart(\DateTime $start)
{ {
@ -344,7 +344,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDuration() : int public function getDuration() : int
{ {
@ -356,7 +356,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDuration(int $duration) public function setDuration(int $duration)
{ {
@ -372,7 +372,7 @@ class Schedule
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getEnd() : \DateTime public function getEnd() : \DateTime
{ {
@ -384,7 +384,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setEnd(\DateTime $end) public function setEnd(\DateTime $end)
{ {
@ -398,7 +398,7 @@ class Schedule
* *
* @return $this * @return $this
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy(int $creator) public function setCreatedBy(int $creator)
{ {
@ -410,7 +410,7 @@ class Schedule
/** /**
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedBy() : int public function getCreatedBy() : int
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class ScheduleMapper extends DataMapperAbstract final class ScheduleMapper extends DataMapperAbstract
{ {
@ -30,7 +30,7 @@ final class ScheduleMapper extends DataMapperAbstract
/** /**
* Columns. * Columns.
* *
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $columns = [ protected static array $columns = [
@ -52,7 +52,7 @@ final class ScheduleMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'schedule'; protected static string $table = 'schedule';
@ -60,7 +60,7 @@ final class ScheduleMapper extends DataMapperAbstract
/** /**
* Created at. * Created at.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'schedule_created_at'; protected static string $createdAt = 'schedule_created_at';
@ -68,7 +68,7 @@ final class ScheduleMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'schedule_id'; protected static string $primaryField = 'schedule_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum;
/** /**
* Schedule status enum. * Schedule status enum.
* *
* @package Modules\Calendar\Models * @package Modules\Calendar\Models
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
abstract class ScheduleStatus extends Enum abstract class ScheduleStatus extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -22,10 +22,10 @@ use phpOMS\Views\View;
/** /**
* Component view. * Component view.
* *
* @package TBD * @package TBD
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
class BaseView extends View class BaseView extends View

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -22,10 +22,10 @@ use phpOMS\Views\View;
/** /**
* Component view. * Component view.
* *
* @package TBD * @package TBD
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
class BaseView extends View class BaseView extends View

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
return ['Navigation' => [ return ['Navigation' => [
'Calendar' => 'Calendar', 'Calendar' => 'Calendar',

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
$MODLANG[1] = [ $MODLANG[1] = [
]; ];

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
return ['Calendar' => [ return ['Calendar' => [
'Blocks' => 'Blocks', 'Blocks' => 'Blocks',

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package TBD * @package TBD
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
?> ?>
<div id="calendar-dashboard" class="col-xs-12 col-md-6" draggable="true"> <div id="calendar-dashboard" class="col-xs-12 col-md-6" draggable="true">