fix phpcs findings

This commit is contained in:
Dennis Eichhorn 2019-09-12 19:48:00 +02:00
parent 375b83c9ba
commit 1534628c00
35 changed files with 465 additions and 455 deletions

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks\Admin\Install * @package Modules\Tasks\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\Tasks\Admin\Install * @package Modules\Tasks\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\Tasks\Admin * @package Modules\Tasks\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\Tasks\Admin * @package Modules\Tasks\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\Tasks\Admin * @package Modules\Tasks\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\Tasks\Admin * @package Modules\Tasks\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\Tasks\Admin * @package Modules\Tasks\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\Tasks\Admin * @package Modules\Tasks\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\Tasks\Admin * @package Modules\Tasks\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\Tasks\Admin * @package Modules\Tasks\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\Tasks * @package Modules\Tasks
* @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);
@ -31,10 +31,10 @@ use phpOMS\Utils\Parser\Markdown\Markdown;
/** /**
* Api controller for the tasks module. * Api controller for the tasks module.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 ApiController extends Controller final class ApiController extends Controller
{ {
@ -45,7 +45,7 @@ final class ApiController extends Controller
* *
* @return array<string, bool> Returns the validation array of the request * @return array<string, bool> Returns the validation array of the request
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function validateTaskCreate(RequestAbstract $request) : array private function validateTaskCreate(RequestAbstract $request) : array
{ {
@ -71,7 +71,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiTaskCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiTaskCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -93,7 +93,7 @@ final class ApiController extends Controller
* *
* @return Task Returns the created task from the request * @return Task Returns the created task from the request
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createTaskFromRequest(RequestAbstract $request) : Task private function createTaskFromRequest(RequestAbstract $request) : Task
{ {
@ -130,7 +130,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiTaskGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiTaskGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -149,7 +149,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiTaskSet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiTaskSet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -166,7 +166,7 @@ final class ApiController extends Controller
* *
* @return Task Returns the updated task from the request * @return Task Returns the updated task from the request
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function updateTaskFromRequest(RequestAbstract $request) : Task private function updateTaskFromRequest(RequestAbstract $request) : Task
{ {
@ -189,7 +189,7 @@ final class ApiController extends Controller
* *
* @return array<string, bool> Returns the validation array of the request * @return array<string, bool> Returns the validation array of the request
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function validateTaskElementCreate(RequestAbstract $request) : array private function validateTaskElementCreate(RequestAbstract $request) : array
{ {
@ -216,7 +216,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiTaskElementCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiTaskElementCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -243,7 +243,7 @@ final class ApiController extends Controller
* *
* @return TaskElement Returns the task created from the request * @return TaskElement Returns the task created from the request
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createTaskElementFromRequest(RequestAbstract $request) : TaskElement private function createTaskElementFromRequest(RequestAbstract $request) : TaskElement
{ {
@ -288,7 +288,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiTaskElementGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiTaskElementGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -307,7 +307,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiTaskElementSet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiTaskElementSet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -326,7 +326,7 @@ final class ApiController extends Controller
* *
* @return TaskElement Returns the updated task element from the request * @return TaskElement Returns the updated task element from the request
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function updateTaskElementFromRequest(RequestAbstract $request) : TaskElement private function updateTaskElementFromRequest(RequestAbstract $request) : TaskElement
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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);
@ -31,21 +31,23 @@ use phpOMS\Views\View;
/** /**
* Backend controller for the tasks module. * Backend controller for the tasks module.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 Returns a renderable object * @return RenderableInterface Returns a renderable object
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewTaskDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewTaskDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -67,13 +69,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 Returns a renderable object * @return RenderableInterface Returns a renderable object
* *
* @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
@ -93,13 +97,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 Returns a renderable object * @return RenderableInterface Returns a renderable object
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewTaskView(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewTaskView(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -138,13 +144,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 Returns a renderable object * @return RenderableInterface Returns a renderable object
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewTaskCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewTaskCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -164,13 +172,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 Returns a renderable object * @return RenderableInterface Returns a renderable object
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewTaskAnalysis(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewTaskAnalysis(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -189,7 +199,7 @@ final class BackendController extends Controller
* *
* @return int Returns the amount of unread tasks * @return int Returns the amount of unread tasks
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function openNav(int $account) : int public function openNav(int $account) : int
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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;
/** /**
* Task class. * Task class.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 = 'Tasks'; public const MODULE_NAME = 'Tasks';
@ -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 = 1001100000; public const MODULE_ID = 1001100000;
@ -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 = [
@ -73,7 +73,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\Tasks * @package Modules\Tasks
* @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 Modules\Admin\Models\Account;
/** /**
* Task relation to account * Task relation to account
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 AccountRelation extends RelationAbstract class AccountRelation extends RelationAbstract
{ {
/** /**
* Relation object * Relation object
* *
* @var int|Account * @var int|Account
* @since 1.0.0 * @since 1.0.0
*/ */
private $relation = null; private $relation = null;
@ -40,7 +40,7 @@ class AccountRelation extends RelationAbstract
* @param int|Account $account Account * @param int|Account $account Account
* @param int $duty Duty type * @param int $duty Duty type
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct($account = 0, int $duty = DutyType::TO) public function __construct($account = 0, int $duty = DutyType::TO)
{ {
@ -53,7 +53,7 @@ class AccountRelation extends RelationAbstract
* *
* @return int|Account * @return int|Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getRelation() public function getRelation()
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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\DataStorage\Database\DataMapperAbstract;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 AccountRelationMapper extends DataMapperAbstract final class AccountRelationMapper extends DataMapperAbstract
{ {
@ -31,7 +31,7 @@ final class AccountRelationMapper 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 = [
@ -44,7 +44,7 @@ final class AccountRelationMapper 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 = [
@ -57,7 +57,7 @@ final class AccountRelationMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'task_account'; protected static string $table = 'task_account';
@ -65,7 +65,7 @@ final class AccountRelationMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'task_account_id'; protected static string $primaryField = 'task_account_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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;
/** /**
* Task forward type enum. * Task forward type enum.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 DutyType extends Enum abstract class DutyType extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 Modules\Admin\Models\Group;
/** /**
* Task relation to group * Task relation to group
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 GroupRelation extends RelationAbstract class GroupRelation extends RelationAbstract
{ {
/** /**
* Relation object * Relation object
* *
* @var int|Group * @var int|Group
* @since 1.0.0 * @since 1.0.0
*/ */
private $relation = null; private $relation = null;
@ -40,7 +40,7 @@ class GroupRelation extends RelationAbstract
* @param int|Group $group Group * @param int|Group $group Group
* @param int $duty Duty type * @param int $duty Duty type
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct($group = 0, int $duty = DutyType::TO) public function __construct($group = 0, int $duty = DutyType::TO)
{ {
@ -53,7 +53,7 @@ class GroupRelation extends RelationAbstract
* *
* @return int|Group * @return int|Group
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getRelation() public function getRelation()
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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\DataStorage\Database\DataMapperAbstract;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 GroupRelationMapper extends DataMapperAbstract final class GroupRelationMapper extends DataMapperAbstract
{ {
@ -31,7 +31,7 @@ final class GroupRelationMapper 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 = [
@ -44,7 +44,7 @@ final class GroupRelationMapper 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 = [
@ -57,7 +57,7 @@ final class GroupRelationMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'task_group'; protected static string $table = 'task_group';
@ -65,7 +65,7 @@ final class GroupRelationMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'task_group_id'; protected static string $primaryField = 'task_group_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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\Tasks\Models;
/** /**
* Null model * Null model
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 NullTask extends Task final class NullTask extends Task
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks\Models * @package Modules\Tasks\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\Tasks\Models;
/** /**
* Null model * Null model
* *
* @package Modules\Tasks\Models * @package Modules\Tasks\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 NullTaskElement extends TaskElement final class NullTaskElement extends TaskElement
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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\Tasks * @package Modules\Tasks
* @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\Tasks * @package Modules\Tasks
* @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,17 +20,17 @@ use Modules\Admin\Models\Group;
/** /**
* Task relation to accounts or groups * Task relation to accounts or groups
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 RelationAbstract implements \JsonSerializable abstract class RelationAbstract implements \JsonSerializable
{ {
/** /**
* ID. * ID.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $id = 0; protected int $id = 0;
@ -38,7 +38,7 @@ abstract class RelationAbstract implements \JsonSerializable
/** /**
* Duty. * Duty.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $duty = DutyType::TO; protected int $duty = DutyType::TO;
@ -47,7 +47,7 @@ abstract class RelationAbstract implements \JsonSerializable
/** /**
* Element id. * Element id.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $element = 0; protected int $element = 0;
@ -57,7 +57,7 @@ abstract class RelationAbstract implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -71,7 +71,7 @@ abstract class RelationAbstract implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDuty(int $duty) : void public function setDuty(int $duty) : void
{ {
@ -83,7 +83,7 @@ abstract class RelationAbstract implements \JsonSerializable
* *
* @return void Is TO or CC * @return void Is TO or CC
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDuty() : int public function getDuty() : int
{ {
@ -95,7 +95,7 @@ abstract class RelationAbstract implements \JsonSerializable
* *
* @return Account|Group * @return Account|Group
* *
* @since 1.0.0 * @since 1.0.0
*/ */
abstract public function getRelation(); abstract public function getRelation();

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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\Stdlib\Base\Exception\InvalidEnumValue;
/** /**
* Task class. * Task class.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 Task implements \JsonSerializable class Task implements \JsonSerializable
{ {
@ -33,7 +33,7 @@ class Task implements \JsonSerializable
/** /**
* ID. * ID.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $id = 0; protected int $id = 0;
@ -41,7 +41,7 @@ class Task implements \JsonSerializable
/** /**
* Title. * Title.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $title = ''; protected string $title = '';
@ -49,7 +49,7 @@ class Task implements \JsonSerializable
/** /**
* Creator. * Creator.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $createdBy = 0; protected $createdBy = 0;
@ -57,7 +57,7 @@ class Task implements \JsonSerializable
/** /**
* Created. * Created.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected ?\DateTime $createdAt = null; protected ?\DateTime $createdAt = null;
@ -65,7 +65,7 @@ class Task implements \JsonSerializable
/** /**
* Description. * Description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $description = ''; protected string $description = '';
@ -73,7 +73,7 @@ class Task implements \JsonSerializable
/** /**
* Description raw. * Description raw.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $descriptionRaw = ''; protected string $descriptionRaw = '';
@ -81,7 +81,7 @@ class Task implements \JsonSerializable
/** /**
* Type. * Type.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $type = TaskType::SINGLE; protected int $type = TaskType::SINGLE;
@ -89,7 +89,7 @@ class Task implements \JsonSerializable
/** /**
* Status. * Status.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $status = TaskStatus::OPEN; protected int $status = TaskStatus::OPEN;
@ -97,7 +97,7 @@ class Task implements \JsonSerializable
/** /**
* Task can be closed by user. * Task can be closed by user.
* *
* @var bool * @var bool
* @since 1.0.0 * @since 1.0.0
*/ */
protected bool $isClosable = true; protected bool $isClosable = true;
@ -105,7 +105,7 @@ class Task implements \JsonSerializable
/** /**
* Task can be edited by user. * Task can be edited by user.
* *
* @var bool * @var bool
* @since 1.0.0 * @since 1.0.0
*/ */
protected bool $isEditable = true; protected bool $isEditable = true;
@ -113,7 +113,7 @@ class Task implements \JsonSerializable
/** /**
* Start. * Start.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected $start = null; protected $start = null;
@ -121,7 +121,7 @@ class Task implements \JsonSerializable
/** /**
* Due. * Due.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected $due = null; protected $due = null;
@ -129,7 +129,7 @@ class Task implements \JsonSerializable
/** /**
* Done. * Done.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected $done = null; protected $done = null;
@ -137,7 +137,7 @@ class Task implements \JsonSerializable
/** /**
* Task elements. * Task elements.
* *
* @var TaskElement[] * @var TaskElement[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected array $taskElements = []; protected array $taskElements = [];
@ -145,7 +145,7 @@ class Task implements \JsonSerializable
/** /**
* Task elements. * Task elements.
* *
* @var Tag[] * @var Tag[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected array $tags = []; protected array $tags = [];
@ -153,7 +153,7 @@ class Task implements \JsonSerializable
/** /**
* Schedule * Schedule
* *
* @var Schedule * @var Schedule
* @since 1.0.0 * @since 1.0.0
*/ */
protected $schedule = null; protected $schedule = null;
@ -161,7 +161,7 @@ class Task implements \JsonSerializable
/** /**
* Priority * Priority
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $priority = TaskPriority::NONE; protected int $priority = TaskPriority::NONE;
@ -169,7 +169,7 @@ class Task implements \JsonSerializable
/** /**
* Media files * Media files
* *
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
protected array $media = []; protected array $media = [];
@ -177,7 +177,7 @@ class Task implements \JsonSerializable
/** /**
* Constructor. * Constructor.
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct() public function __construct()
{ {
@ -193,7 +193,7 @@ class Task implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -209,7 +209,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setClosable(bool $closable) : void public function setClosable(bool $closable) : void
{ {
@ -221,7 +221,7 @@ class Task implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isClosable() : bool public function isClosable() : bool
{ {
@ -237,7 +237,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setEditable(bool $editable) : void public function setEditable(bool $editable) : void
{ {
@ -249,7 +249,7 @@ class Task implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isEditable() : bool public function isEditable() : bool
{ {
@ -263,7 +263,7 @@ class Task implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addElement(TaskElement $element) : int public function addElement(TaskElement $element) : int
{ {
@ -283,7 +283,7 @@ class Task implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addTag(Tag $tag) : int public function addTag(Tag $tag) : int
{ {
@ -301,7 +301,7 @@ class Task implements \JsonSerializable
* *
* @return array<int|\Modules\Media\Models\Media> * @return array<int|\Modules\Media\Models\Media>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getMedia() : array public function getMedia() : array
{ {
@ -315,7 +315,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addMedia($media) : void public function addMedia($media) : void
{ {
@ -329,7 +329,7 @@ class Task implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isToAccount(int $id) : bool public function isToAccount(int $id) : bool
{ {
@ -349,7 +349,7 @@ class Task implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isToGroup(int $id) : bool public function isToGroup(int $id) : bool
{ {
@ -369,7 +369,7 @@ class Task implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isCCAccount(int $id) : bool public function isCCAccount(int $id) : bool
{ {
@ -389,7 +389,7 @@ class Task implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isCCGroup(int $id) : bool public function isCCGroup(int $id) : bool
{ {
@ -405,7 +405,7 @@ class Task implements \JsonSerializable
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTime public function getCreatedAt() : \DateTime
{ {
@ -415,7 +415,7 @@ class Task implements \JsonSerializable
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStart() : \DateTime public function getStart() : \DateTime
{ {
@ -429,7 +429,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStart(\DateTime $start) : void public function setStart(\DateTime $start) : void
{ {
@ -441,7 +441,7 @@ class Task implements \JsonSerializable
* *
* @return int|\phpOMS\Account\Account * @return int|\phpOMS\Account\Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedBy() public function getCreatedBy()
{ {
@ -455,7 +455,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy($id) : void public function setCreatedBy($id) : void
{ {
@ -468,7 +468,7 @@ class Task implements \JsonSerializable
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescription() : string public function getDescription() : string
{ {
@ -482,7 +482,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescription(string $description) : void public function setDescription(string $description) : void
{ {
@ -494,7 +494,7 @@ class Task implements \JsonSerializable
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescriptionRaw() : string public function getDescriptionRaw() : string
{ {
@ -508,7 +508,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescriptionRaw(string $description) : void public function setDescriptionRaw(string $description) : void
{ {
@ -520,7 +520,7 @@ class Task implements \JsonSerializable
* *
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDone() : \DateTime public function getDone() : \DateTime
{ {
@ -534,7 +534,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDone(\DateTime $done) : void public function setDone(\DateTime $done) : void
{ {
@ -546,7 +546,7 @@ class Task implements \JsonSerializable
* *
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDue() : \DateTime public function getDue() : \DateTime
{ {
@ -560,7 +560,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDue(\DateTime $due) : void public function setDue(\DateTime $due) : void
{ {
@ -572,7 +572,7 @@ class Task implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStatus() : int public function getStatus() : int
{ {
@ -588,7 +588,7 @@ class Task implements \JsonSerializable
* *
* @throws InvalidEnumValue * @throws InvalidEnumValue
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStatus(int $status) : void public function setStatus(int $status) : void
{ {
@ -604,7 +604,7 @@ class Task implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getPriority() : int public function getPriority() : int
{ {
@ -620,7 +620,7 @@ class Task implements \JsonSerializable
* *
* @throws InvalidEnumValue * @throws InvalidEnumValue
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setPriority(int $priority) : void public function setPriority(int $priority) : void
{ {
@ -636,7 +636,7 @@ class Task implements \JsonSerializable
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTitle() : string public function getTitle() : string
{ {
@ -650,7 +650,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setTitle(string $title) : void public function setTitle(string $title) : void
{ {
@ -664,7 +664,7 @@ class Task implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function removeElement($id) : bool public function removeElement($id) : bool
{ {
@ -684,7 +684,7 @@ class Task implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function removeTag($id) : bool public function removeTag($id) : bool
{ {
@ -702,7 +702,7 @@ class Task implements \JsonSerializable
* *
* @return Tag[] * @return Tag[]
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTags() : array public function getTags() : array
{ {
@ -716,7 +716,7 @@ class Task implements \JsonSerializable
* *
* @return Tag * @return Tag
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTag(int $id) : Tag public function getTag(int $id) : Tag
{ {
@ -728,7 +728,7 @@ class Task implements \JsonSerializable
* *
* @return TaskElement[] * @return TaskElement[]
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTaskElements() : array public function getTaskElements() : array
{ {
@ -742,7 +742,7 @@ class Task implements \JsonSerializable
* *
* @return TaskElement * @return TaskElement
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTaskElement(int $id) : TaskElement public function getTaskElement(int $id) : TaskElement
{ {
@ -754,7 +754,7 @@ class Task implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getType() : int public function getType() : int
{ {
@ -768,7 +768,7 @@ class Task implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setType(int $type = TaskType::SINGLE) : void public function setType(int $type = TaskType::SINGLE) : void
{ {
@ -780,7 +780,7 @@ class Task implements \JsonSerializable
* *
* @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\Tasks * @package Modules\Tasks
* @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\Stdlib\Base\Exception\InvalidEnumValue;
/** /**
* Task class. * Task class.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 TaskElement implements \JsonSerializable class TaskElement implements \JsonSerializable
{ {
@ -33,7 +33,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Id. * Id.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $id = 0; private int $id = 0;
@ -41,7 +41,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Description. * Description.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $description = ''; private string $description = '';
@ -49,7 +49,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Description raw. * Description raw.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private string $descriptionRaw = ''; private string $descriptionRaw = '';
@ -57,7 +57,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Task. * Task.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $task = 0; private int $task = 0;
@ -65,7 +65,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Creator. * Creator.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdBy = 0; private $createdBy = 0;
@ -73,7 +73,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Created. * Created.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $createdAt = null; private ?\DateTime $createdAt = null;
@ -81,7 +81,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Status. * Status.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private int $status = TaskStatus::OPEN; private int $status = TaskStatus::OPEN;
@ -89,7 +89,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Due. * Due.
* *
* @var null|\DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
private ?\DateTime $due = null; private ?\DateTime $due = null;
@ -97,7 +97,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Priority * Priority
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $priority = TaskPriority::NONE; protected int $priority = TaskPriority::NONE;
@ -105,7 +105,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Media. * Media.
* *
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
private array $media = []; private array $media = [];
@ -113,7 +113,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Accounts who received this task element. * Accounts who received this task element.
* *
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
protected array $accRelation = []; protected array $accRelation = [];
@ -121,7 +121,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Groups who received this task element. * Groups who received this task element.
* *
* @var array * @var array
* @since 1.0.0 * @since 1.0.0
*/ */
protected array $grpRelation = []; protected array $grpRelation = [];
@ -129,7 +129,7 @@ class TaskElement implements \JsonSerializable
/** /**
* Constructor. * Constructor.
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function __construct() public function __construct()
{ {
@ -143,7 +143,7 @@ class TaskElement implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -153,7 +153,7 @@ class TaskElement implements \JsonSerializable
/** /**
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedAt() : \DateTime public function getCreatedAt() : \DateTime
{ {
@ -163,7 +163,7 @@ class TaskElement implements \JsonSerializable
/** /**
* @return int|\phpOMS\Account\Account * @return int|\phpOMS\Account\Account
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCreatedBy() public function getCreatedBy()
{ {
@ -177,7 +177,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy($creator) : void public function setCreatedBy($creator) : void
{ {
@ -189,7 +189,7 @@ class TaskElement implements \JsonSerializable
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getMedia() : array public function getMedia() : array
{ {
@ -203,7 +203,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addMedia($media) : void public function addMedia($media) : void
{ {
@ -214,7 +214,7 @@ class TaskElement implements \JsonSerializable
* Get description * Get description
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescription() : string public function getDescription() : string
{ {
@ -228,7 +228,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescription(string $description) : void public function setDescription(string $description) : void
{ {
@ -240,7 +240,7 @@ class TaskElement implements \JsonSerializable
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDescriptionRaw() : string public function getDescriptionRaw() : string
{ {
@ -254,7 +254,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescriptionRaw(string $description) : void public function setDescriptionRaw(string $description) : void
{ {
@ -266,7 +266,7 @@ class TaskElement implements \JsonSerializable
* *
* @return \DateTime * @return \DateTime
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getDue() : \DateTime public function getDue() : \DateTime
{ {
@ -280,7 +280,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDue(\DateTime $due) : void public function setDue(\DateTime $due) : void
{ {
@ -292,7 +292,7 @@ class TaskElement implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getPriority() : int public function getPriority() : int
{ {
@ -308,7 +308,7 @@ class TaskElement implements \JsonSerializable
* *
* @throws InvalidEnumValue * @throws InvalidEnumValue
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setPriority(int $priority) : void public function setPriority(int $priority) : void
{ {
@ -324,7 +324,7 @@ class TaskElement implements \JsonSerializable
* *
* @return array<RelationAbstract> * @return array<RelationAbstract>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTo() : array public function getTo() : array
{ {
@ -352,7 +352,7 @@ class TaskElement implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isToAccount(int $id) : bool public function isToAccount(int $id) : bool
{ {
@ -376,7 +376,7 @@ class TaskElement implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isToGroup(int $id) : bool public function isToGroup(int $id) : bool
{ {
@ -400,7 +400,7 @@ class TaskElement implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isCCAccount(int $id) : bool public function isCCAccount(int $id) : bool
{ {
@ -424,7 +424,7 @@ class TaskElement implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function isCCGroup(int $id) : bool public function isCCGroup(int $id) : bool
{ {
@ -448,7 +448,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addTo($to) : void public function addTo($to) : void
{ {
@ -466,7 +466,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addGroupTo($group) : void public function addGroupTo($group) : void
{ {
@ -490,7 +490,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addAccountTo($account) : void public function addAccountTo($account) : void
{ {
@ -512,7 +512,7 @@ class TaskElement implements \JsonSerializable
* *
* @return array<RelationAbstract> * @return array<RelationAbstract>
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getCC() : array public function getCC() : array
{ {
@ -540,7 +540,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addCC($cc) : void public function addCC($cc) : void
{ {
@ -558,7 +558,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addGroupCC($group) : void public function addGroupCC($group) : void
{ {
@ -582,7 +582,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addAccountCC($account) : void public function addAccountCC($account) : void
{ {
@ -604,7 +604,7 @@ class TaskElement implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStatus() : int public function getStatus() : int
{ {
@ -620,7 +620,7 @@ class TaskElement implements \JsonSerializable
* *
* @throws InvalidEnumValue * @throws InvalidEnumValue
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setStatus(int $status) : void public function setStatus(int $status) : void
{ {
@ -636,7 +636,7 @@ class TaskElement implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTask() : int public function getTask() : int
{ {
@ -650,7 +650,7 @@ class TaskElement implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setTask(int $task) : void public function setTask(int $task) : void
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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\DataStorage\Database\DataMapperAbstract;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 TaskElementMapper extends DataMapperAbstract final class TaskElementMapper extends DataMapperAbstract
{ {
@ -32,7 +32,7 @@ final class TaskElementMapper 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 = [
@ -50,7 +50,7 @@ final class TaskElementMapper 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 = [
@ -77,7 +77,7 @@ final class TaskElementMapper extends DataMapperAbstract
/** /**
* Belongs to. * Belongs to.
* *
* @var array<string, array<string, string>> * @var array<string, array<string, string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $belongsTo = [ protected static array $belongsTo = [
@ -90,7 +90,7 @@ final class TaskElementMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'task_element'; protected static string $table = 'task_element';
@ -98,7 +98,7 @@ final class TaskElementMapper extends DataMapperAbstract
/** /**
* Created at. * Created at.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'task_element_created_at'; protected static string $createdAt = 'task_element_created_at';
@ -106,7 +106,7 @@ final class TaskElementMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'task_element_id'; protected static string $primaryField = 'task_element_id';

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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);
@ -23,10 +23,10 @@ use phpOMS\DataStorage\Database\Query\Builder;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 TaskMapper extends DataMapperAbstract final class TaskMapper extends DataMapperAbstract
{ {
@ -34,7 +34,7 @@ final class TaskMapper 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 = [
@ -58,7 +58,7 @@ final class TaskMapper 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 = [
@ -85,7 +85,7 @@ final class TaskMapper extends DataMapperAbstract
/** /**
* Belongs to. * Belongs to.
* *
* @var array<string, array<string, string>> * @var array<string, array<string, string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $belongsTo = [ protected static array $belongsTo = [
@ -98,7 +98,7 @@ final class TaskMapper 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 = [
@ -111,7 +111,7 @@ final class TaskMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'task'; protected static string $table = 'task';
@ -119,7 +119,7 @@ final class TaskMapper extends DataMapperAbstract
/** /**
* Created at. * Created at.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $createdAt = 'task_created_at'; protected static string $createdAt = 'task_created_at';
@ -127,7 +127,7 @@ final class TaskMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'task_id'; protected static string $primaryField = 'task_id';
@ -139,7 +139,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getOpenCreatedBy(int $user) : array public static function getOpenCreatedBy(int $user) : array
{ {
@ -157,7 +157,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getOpenTo(int $user) : array public static function getOpenTo(int $user) : array
{ {
@ -180,7 +180,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getOpenAny(int $user) : array public static function getOpenAny(int $user) : array
{ {
@ -203,7 +203,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getOpenCC(int $user) : array public static function getOpenCC(int $user) : array
{ {
@ -226,7 +226,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getCreatedBy(int $user) : array public static function getCreatedBy(int $user) : array
{ {
@ -243,7 +243,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getTo(int $user) : array public static function getTo(int $user) : array
{ {
@ -265,7 +265,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getCC(int $user) : array public static function getCC(int $user) : array
{ {
@ -287,7 +287,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return array * @return array
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function getAny(int $user) : array public static function getAny(int $user) : array
{ {
@ -310,7 +310,7 @@ final class TaskMapper extends DataMapperAbstract
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public static function countUnread(int $user) : int public static function countUnread(int $user) : int
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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;
/** /**
* Task priority enum. * Task priority enum.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 TaskPriority extends Enum abstract class TaskPriority extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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;
/** /**
* Task status enum. * Task status enum.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 TaskStatus extends Enum abstract class TaskStatus extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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\Tasks\Models;
/** /**
* Task class. * Task class.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 TaskTemplate extends Task class TaskTemplate extends Task
{ {
/** /**
* Type. * Type.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $type = TaskType::TEMPLATE; protected int $type = TaskType::TEMPLATE;

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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;
/** /**
* Task type enum. * Task type enum.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 TaskType extends Enum abstract class TaskType extends Enum
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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;
/** /**
* Task visibility enum. * Task visibility enum.
* *
* @package Modules\Tasks * @package Modules\Tasks
* @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 TaskVisibility extends Enum abstract class TaskVisibility 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 ListView extends View class ListView 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' => [
'Analysis' => 'Analysis', 'Analysis' => 'Analysis',

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 ['Tasks' => [ return ['Tasks' => [
'Account' => 'Account', 'Account' => 'Account',

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="task-dashboard" class="col-xs-12 col-md-6" draggable="true"> <div id="task-dashboard" class="col-xs-12 col-md-6" draggable="true">

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
*/ */
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this

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
*/ */
use \Modules\Tasks\Models\TaskPriority; use \Modules\Tasks\Models\TaskPriority;

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
*/ */
use Modules\Tasks\Models\TaskPriority; use Modules\Tasks\Models\TaskPriority;

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
*/ */
use \Modules\Tasks\Models\AccountRelation; use \Modules\Tasks\Models\AccountRelation;

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);