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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -31,10 +31,10 @@ use phpOMS\Utils\Parser\Markdown\Markdown;
/**
* Api controller for the tasks module.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
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
*
* @since 1.0.0
* @since 1.0.0
*/
private function validateTaskCreate(RequestAbstract $request) : array
{
@ -71,7 +71,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
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
*
* @since 1.0.0
* @since 1.0.0
*/
private function createTaskFromRequest(RequestAbstract $request) : Task
{
@ -130,7 +130,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
public function apiTaskGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{
@ -149,7 +149,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
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
*
* @since 1.0.0
* @since 1.0.0
*/
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
*
* @since 1.0.0
* @since 1.0.0
*/
private function validateTaskElementCreate(RequestAbstract $request) : array
{
@ -216,7 +216,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
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
*
* @since 1.0.0
* @since 1.0.0
*/
private function createTaskElementFromRequest(RequestAbstract $request) : TaskElement
{
@ -288,7 +288,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
public function apiTaskElementGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{
@ -307,7 +307,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
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
*
* @since 1.0.0
* @since 1.0.0
*/
private function updateTaskElementFromRequest(RequestAbstract $request) : TaskElement
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -31,21 +31,23 @@ use phpOMS\Views\View;
/**
* Backend controller for the tasks module.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class BackendController extends Controller
{
/**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param mixed $data Generic data
*
* @return RenderableInterface Returns a renderable object
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
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 ResponseAbstract $response Response
* @param mixed $data Generic data
*
* @return RenderableInterface Returns a renderable object
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
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 ResponseAbstract $response Response
* @param mixed $data Generic data
*
* @return RenderableInterface Returns a renderable object
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
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 ResponseAbstract $response Response
* @param mixed $data Generic data
*
* @return RenderableInterface Returns a renderable object
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
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 ResponseAbstract $response Response
* @param mixed $data Generic data
*
* @return RenderableInterface Returns a renderable object
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
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
*
* @since 1.0.0
* @since 1.0.0
*/
public function openNav(int $account) : int
{

View File

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

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -19,17 +19,17 @@ use Modules\Admin\Models\Account;
/**
* Task relation to account
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class AccountRelation extends RelationAbstract
{
/**
* Relation object
*
* @var int|Account
* @var int|Account
* @since 1.0.0
*/
private $relation = null;
@ -40,7 +40,7 @@ class AccountRelation extends RelationAbstract
* @param int|Account $account Account
* @param int $duty Duty type
*
* @since 1.0.0
* @since 1.0.0
*/
public function __construct($account = 0, int $duty = DutyType::TO)
{
@ -53,7 +53,7 @@ class AccountRelation extends RelationAbstract
*
* @return int|Account
*
* @since 1.0.0
* @since 1.0.0
*/
public function getRelation()
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -20,10 +20,10 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/**
* Mapper class.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class AccountRelationMapper extends DataMapperAbstract
{
@ -31,7 +31,7 @@ final class AccountRelationMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -44,7 +44,7 @@ final class AccountRelationMapper extends DataMapperAbstract
/**
* Has one relation.
*
* @var array<string, array<string, string>>
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static array $ownsOne = [
@ -57,7 +57,7 @@ final class AccountRelationMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'task_account';
@ -65,7 +65,7 @@ final class AccountRelationMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'task_account_id';

View File

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

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -19,17 +19,17 @@ use Modules\Admin\Models\Group;
/**
* Task relation to group
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class GroupRelation extends RelationAbstract
{
/**
* Relation object
*
* @var int|Group
* @var int|Group
* @since 1.0.0
*/
private $relation = null;
@ -40,7 +40,7 @@ class GroupRelation extends RelationAbstract
* @param int|Group $group Group
* @param int $duty Duty type
*
* @since 1.0.0
* @since 1.0.0
*/
public function __construct($group = 0, int $duty = DutyType::TO)
{
@ -53,7 +53,7 @@ class GroupRelation extends RelationAbstract
*
* @return int|Group
*
* @since 1.0.0
* @since 1.0.0
*/
public function getRelation()
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -20,10 +20,10 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/**
* Mapper class.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class GroupRelationMapper extends DataMapperAbstract
{
@ -31,7 +31,7 @@ final class GroupRelationMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -44,7 +44,7 @@ final class GroupRelationMapper extends DataMapperAbstract
/**
* Has one relation.
*
* @var array<string, array<string, string>>
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static array $ownsOne = [
@ -57,7 +57,7 @@ final class GroupRelationMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'task_group';
@ -65,7 +65,7 @@ final class GroupRelationMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'task_group_id';

View File

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

View File

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

View File

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

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -20,17 +20,17 @@ use Modules\Admin\Models\Group;
/**
* Task relation to accounts or groups
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
abstract class RelationAbstract implements \JsonSerializable
{
/**
* ID.
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $id = 0;
@ -38,7 +38,7 @@ abstract class RelationAbstract implements \JsonSerializable
/**
* Duty.
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $duty = DutyType::TO;
@ -47,7 +47,7 @@ abstract class RelationAbstract implements \JsonSerializable
/**
* Element id.
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $element = 0;
@ -57,7 +57,7 @@ abstract class RelationAbstract implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getId() : int
{
@ -71,7 +71,7 @@ abstract class RelationAbstract implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDuty(int $duty) : void
{
@ -83,7 +83,7 @@ abstract class RelationAbstract implements \JsonSerializable
*
* @return void Is TO or CC
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDuty() : int
{
@ -95,7 +95,7 @@ abstract class RelationAbstract implements \JsonSerializable
*
* @return Account|Group
*
* @since 1.0.0
* @since 1.0.0
*/
abstract public function getRelation();

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -22,10 +22,10 @@ use phpOMS\Stdlib\Base\Exception\InvalidEnumValue;
/**
* Task class.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class Task implements \JsonSerializable
{
@ -33,7 +33,7 @@ class Task implements \JsonSerializable
/**
* ID.
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $id = 0;
@ -41,7 +41,7 @@ class Task implements \JsonSerializable
/**
* Title.
*
* @var string
* @var string
* @since 1.0.0
*/
protected string $title = '';
@ -49,7 +49,7 @@ class Task implements \JsonSerializable
/**
* Creator.
*
* @var int
* @var int
* @since 1.0.0
*/
protected $createdBy = 0;
@ -57,7 +57,7 @@ class Task implements \JsonSerializable
/**
* Created.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected ?\DateTime $createdAt = null;
@ -65,7 +65,7 @@ class Task implements \JsonSerializable
/**
* Description.
*
* @var string
* @var string
* @since 1.0.0
*/
protected string $description = '';
@ -73,7 +73,7 @@ class Task implements \JsonSerializable
/**
* Description raw.
*
* @var string
* @var string
* @since 1.0.0
*/
protected string $descriptionRaw = '';
@ -81,7 +81,7 @@ class Task implements \JsonSerializable
/**
* Type.
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $type = TaskType::SINGLE;
@ -89,7 +89,7 @@ class Task implements \JsonSerializable
/**
* Status.
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $status = TaskStatus::OPEN;
@ -97,7 +97,7 @@ class Task implements \JsonSerializable
/**
* Task can be closed by user.
*
* @var bool
* @var bool
* @since 1.0.0
*/
protected bool $isClosable = true;
@ -105,7 +105,7 @@ class Task implements \JsonSerializable
/**
* Task can be edited by user.
*
* @var bool
* @var bool
* @since 1.0.0
*/
protected bool $isEditable = true;
@ -113,7 +113,7 @@ class Task implements \JsonSerializable
/**
* Start.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected $start = null;
@ -121,7 +121,7 @@ class Task implements \JsonSerializable
/**
* Due.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected $due = null;
@ -129,7 +129,7 @@ class Task implements \JsonSerializable
/**
* Done.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected $done = null;
@ -137,7 +137,7 @@ class Task implements \JsonSerializable
/**
* Task elements.
*
* @var TaskElement[]
* @var TaskElement[]
* @since 1.0.0
*/
protected array $taskElements = [];
@ -145,7 +145,7 @@ class Task implements \JsonSerializable
/**
* Task elements.
*
* @var Tag[]
* @var Tag[]
* @since 1.0.0
*/
protected array $tags = [];
@ -153,7 +153,7 @@ class Task implements \JsonSerializable
/**
* Schedule
*
* @var Schedule
* @var Schedule
* @since 1.0.0
*/
protected $schedule = null;
@ -161,7 +161,7 @@ class Task implements \JsonSerializable
/**
* Priority
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $priority = TaskPriority::NONE;
@ -169,7 +169,7 @@ class Task implements \JsonSerializable
/**
* Media files
*
* @var array
* @var array
* @since 1.0.0
*/
protected array $media = [];
@ -177,7 +177,7 @@ class Task implements \JsonSerializable
/**
* Constructor.
*
* @since 1.0.0
* @since 1.0.0
*/
public function __construct()
{
@ -193,7 +193,7 @@ class Task implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getId() : int
{
@ -209,7 +209,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setClosable(bool $closable) : void
{
@ -221,7 +221,7 @@ class Task implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isClosable() : bool
{
@ -237,7 +237,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setEditable(bool $editable) : void
{
@ -249,7 +249,7 @@ class Task implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isEditable() : bool
{
@ -263,7 +263,7 @@ class Task implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function addElement(TaskElement $element) : int
{
@ -283,7 +283,7 @@ class Task implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function addTag(Tag $tag) : int
{
@ -301,7 +301,7 @@ class Task implements \JsonSerializable
*
* @return array<int|\Modules\Media\Models\Media>
*
* @since 1.0.0
* @since 1.0.0
*/
public function getMedia() : array
{
@ -315,7 +315,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addMedia($media) : void
{
@ -329,7 +329,7 @@ class Task implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isToAccount(int $id) : bool
{
@ -349,7 +349,7 @@ class Task implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isToGroup(int $id) : bool
{
@ -369,7 +369,7 @@ class Task implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isCCAccount(int $id) : bool
{
@ -389,7 +389,7 @@ class Task implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isCCGroup(int $id) : bool
{
@ -405,7 +405,7 @@ class Task implements \JsonSerializable
/**
* @return \DateTime
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCreatedAt() : \DateTime
{
@ -415,7 +415,7 @@ class Task implements \JsonSerializable
/**
* @return \DateTime
*
* @since 1.0.0
* @since 1.0.0
*/
public function getStart() : \DateTime
{
@ -429,7 +429,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setStart(\DateTime $start) : void
{
@ -441,7 +441,7 @@ class Task implements \JsonSerializable
*
* @return int|\phpOMS\Account\Account
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCreatedBy()
{
@ -455,7 +455,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setCreatedBy($id) : void
{
@ -468,7 +468,7 @@ class Task implements \JsonSerializable
*
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDescription() : string
{
@ -482,7 +482,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDescription(string $description) : void
{
@ -494,7 +494,7 @@ class Task implements \JsonSerializable
*
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
@ -508,7 +508,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
@ -520,7 +520,7 @@ class Task implements \JsonSerializable
*
* @return \DateTime
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDone() : \DateTime
{
@ -534,7 +534,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDone(\DateTime $done) : void
{
@ -546,7 +546,7 @@ class Task implements \JsonSerializable
*
* @return \DateTime
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDue() : \DateTime
{
@ -560,7 +560,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDue(\DateTime $due) : void
{
@ -572,7 +572,7 @@ class Task implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getStatus() : int
{
@ -588,7 +588,7 @@ class Task implements \JsonSerializable
*
* @throws InvalidEnumValue
*
* @since 1.0.0
* @since 1.0.0
*/
public function setStatus(int $status) : void
{
@ -604,7 +604,7 @@ class Task implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getPriority() : int
{
@ -620,7 +620,7 @@ class Task implements \JsonSerializable
*
* @throws InvalidEnumValue
*
* @since 1.0.0
* @since 1.0.0
*/
public function setPriority(int $priority) : void
{
@ -636,7 +636,7 @@ class Task implements \JsonSerializable
*
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTitle() : string
{
@ -650,7 +650,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setTitle(string $title) : void
{
@ -664,7 +664,7 @@ class Task implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function removeElement($id) : bool
{
@ -684,7 +684,7 @@ class Task implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function removeTag($id) : bool
{
@ -702,7 +702,7 @@ class Task implements \JsonSerializable
*
* @return Tag[]
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTags() : array
{
@ -716,7 +716,7 @@ class Task implements \JsonSerializable
*
* @return Tag
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTag(int $id) : Tag
{
@ -728,7 +728,7 @@ class Task implements \JsonSerializable
*
* @return TaskElement[]
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTaskElements() : array
{
@ -742,7 +742,7 @@ class Task implements \JsonSerializable
*
* @return TaskElement
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTaskElement(int $id) : TaskElement
{
@ -754,7 +754,7 @@ class Task implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getType() : int
{
@ -768,7 +768,7 @@ class Task implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setType(int $type = TaskType::SINGLE) : void
{
@ -780,7 +780,7 @@ class Task implements \JsonSerializable
*
* @return Schedule
*
* @since 1.0.0
* @since 1.0.0
*/
public function getSchedule() : Schedule
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -22,10 +22,10 @@ use phpOMS\Stdlib\Base\Exception\InvalidEnumValue;
/**
* Task class.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class TaskElement implements \JsonSerializable
{
@ -33,7 +33,7 @@ class TaskElement implements \JsonSerializable
/**
* Id.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $id = 0;
@ -41,7 +41,7 @@ class TaskElement implements \JsonSerializable
/**
* Description.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $description = '';
@ -49,7 +49,7 @@ class TaskElement implements \JsonSerializable
/**
* Description raw.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
@ -57,7 +57,7 @@ class TaskElement implements \JsonSerializable
/**
* Task.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $task = 0;
@ -65,7 +65,7 @@ class TaskElement implements \JsonSerializable
/**
* Creator.
*
* @var int
* @var int
* @since 1.0.0
*/
private $createdBy = 0;
@ -73,7 +73,7 @@ class TaskElement implements \JsonSerializable
/**
* Created.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private ?\DateTime $createdAt = null;
@ -81,7 +81,7 @@ class TaskElement implements \JsonSerializable
/**
* Status.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $status = TaskStatus::OPEN;
@ -89,7 +89,7 @@ class TaskElement implements \JsonSerializable
/**
* Due.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
private ?\DateTime $due = null;
@ -97,7 +97,7 @@ class TaskElement implements \JsonSerializable
/**
* Priority
*
* @var int
* @var int
* @since 1.0.0
*/
protected int $priority = TaskPriority::NONE;
@ -105,7 +105,7 @@ class TaskElement implements \JsonSerializable
/**
* Media.
*
* @var array
* @var array
* @since 1.0.0
*/
private array $media = [];
@ -113,7 +113,7 @@ class TaskElement implements \JsonSerializable
/**
* Accounts who received this task element.
*
* @var array
* @var array
* @since 1.0.0
*/
protected array $accRelation = [];
@ -121,7 +121,7 @@ class TaskElement implements \JsonSerializable
/**
* Groups who received this task element.
*
* @var array
* @var array
* @since 1.0.0
*/
protected array $grpRelation = [];
@ -129,7 +129,7 @@ class TaskElement implements \JsonSerializable
/**
* Constructor.
*
* @since 1.0.0
* @since 1.0.0
*/
public function __construct()
{
@ -143,7 +143,7 @@ class TaskElement implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getId() : int
{
@ -153,7 +153,7 @@ class TaskElement implements \JsonSerializable
/**
* @return \DateTime
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCreatedAt() : \DateTime
{
@ -163,7 +163,7 @@ class TaskElement implements \JsonSerializable
/**
* @return int|\phpOMS\Account\Account
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCreatedBy()
{
@ -177,7 +177,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setCreatedBy($creator) : void
{
@ -189,7 +189,7 @@ class TaskElement implements \JsonSerializable
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public function getMedia() : array
{
@ -203,7 +203,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addMedia($media) : void
{
@ -214,7 +214,7 @@ class TaskElement implements \JsonSerializable
* Get description
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDescription() : string
{
@ -228,7 +228,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDescription(string $description) : void
{
@ -240,7 +240,7 @@ class TaskElement implements \JsonSerializable
*
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
@ -254,7 +254,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
@ -266,7 +266,7 @@ class TaskElement implements \JsonSerializable
*
* @return \DateTime
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDue() : \DateTime
{
@ -280,7 +280,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDue(\DateTime $due) : void
{
@ -292,7 +292,7 @@ class TaskElement implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getPriority() : int
{
@ -308,7 +308,7 @@ class TaskElement implements \JsonSerializable
*
* @throws InvalidEnumValue
*
* @since 1.0.0
* @since 1.0.0
*/
public function setPriority(int $priority) : void
{
@ -324,7 +324,7 @@ class TaskElement implements \JsonSerializable
*
* @return array<RelationAbstract>
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTo() : array
{
@ -352,7 +352,7 @@ class TaskElement implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isToAccount(int $id) : bool
{
@ -376,7 +376,7 @@ class TaskElement implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isToGroup(int $id) : bool
{
@ -400,7 +400,7 @@ class TaskElement implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isCCAccount(int $id) : bool
{
@ -424,7 +424,7 @@ class TaskElement implements \JsonSerializable
*
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isCCGroup(int $id) : bool
{
@ -448,7 +448,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addTo($to) : void
{
@ -466,7 +466,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addGroupTo($group) : void
{
@ -490,7 +490,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addAccountTo($account) : void
{
@ -512,7 +512,7 @@ class TaskElement implements \JsonSerializable
*
* @return array<RelationAbstract>
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCC() : array
{
@ -540,7 +540,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addCC($cc) : void
{
@ -558,7 +558,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addGroupCC($group) : void
{
@ -582,7 +582,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addAccountCC($account) : void
{
@ -604,7 +604,7 @@ class TaskElement implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getStatus() : int
{
@ -620,7 +620,7 @@ class TaskElement implements \JsonSerializable
*
* @throws InvalidEnumValue
*
* @since 1.0.0
* @since 1.0.0
*/
public function setStatus(int $status) : void
{
@ -636,7 +636,7 @@ class TaskElement implements \JsonSerializable
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTask() : int
{
@ -650,7 +650,7 @@ class TaskElement implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setTask(int $task) : void
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -21,10 +21,10 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/**
* Mapper class.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class TaskElementMapper extends DataMapperAbstract
{
@ -32,7 +32,7 @@ final class TaskElementMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -50,7 +50,7 @@ final class TaskElementMapper extends DataMapperAbstract
/**
* Has many relation.
*
* @var array<string, array<string, null|string>>
* @var array<string, array<string, null|string>>
* @since 1.0.0
*/
protected static array $hasMany = [
@ -77,7 +77,7 @@ final class TaskElementMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static array $belongsTo = [
@ -90,7 +90,7 @@ final class TaskElementMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'task_element';
@ -98,7 +98,7 @@ final class TaskElementMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'task_element_created_at';
@ -106,7 +106,7 @@ final class TaskElementMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'task_element_id';

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Tasks
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -23,10 +23,10 @@ use phpOMS\DataStorage\Database\Query\Builder;
/**
* Mapper class.
*
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Tasks
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
final class TaskMapper extends DataMapperAbstract
{
@ -34,7 +34,7 @@ final class TaskMapper extends DataMapperAbstract
/**
* Columns.
*
* @var array<string, array<string, bool|string>>
* @var array<string, array<string, bool|string>>
* @since 1.0.0
*/
protected static array $columns = [
@ -58,7 +58,7 @@ final class TaskMapper extends DataMapperAbstract
/**
* Has many relation.
*
* @var array<string, array<string, null|string>>
* @var array<string, array<string, null|string>>
* @since 1.0.0
*/
protected static array $hasMany = [
@ -85,7 +85,7 @@ final class TaskMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static array $belongsTo = [
@ -98,7 +98,7 @@ final class TaskMapper extends DataMapperAbstract
/**
* Has one relation.
*
* @var array<string, array<string, string>>
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static array $ownsOne = [
@ -111,7 +111,7 @@ final class TaskMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'task';
@ -119,7 +119,7 @@ final class TaskMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'task_created_at';
@ -127,7 +127,7 @@ final class TaskMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'task_id';
@ -139,7 +139,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public static function getOpenCreatedBy(int $user) : array
{
@ -157,7 +157,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public static function getOpenTo(int $user) : array
{
@ -180,7 +180,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public static function getOpenAny(int $user) : array
{
@ -203,7 +203,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public static function getOpenCC(int $user) : array
{
@ -226,7 +226,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public static function getCreatedBy(int $user) : array
{
@ -243,7 +243,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public static function getTo(int $user) : array
{
@ -265,7 +265,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public static function getCC(int $user) : array
{
@ -287,7 +287,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public static function getAny(int $user) : array
{
@ -310,7 +310,7 @@ final class TaskMapper extends DataMapperAbstract
*
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public static function countUnread(int $user) : int
{

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
/**
* @var \phpOMS\Views\View $this

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
use \Modules\Tasks\Models\TaskPriority;

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
use Modules\Tasks\Models\TaskPriority;

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
use \Modules\Tasks\Models\AccountRelation;

View File

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