fix phpcs findings

This commit is contained in:
Dennis Eichhorn 2019-09-12 19:48:00 +02:00
parent 0fa2c825a2
commit 4497e32dc2
17 changed files with 205 additions and 203 deletions

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Dashboard\Admin\Install * @package Modules\Dashboard\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\Dashboard\Admin\Install * @package Modules\Dashboard\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\Dashboard\Admin * @package Modules\Dashboard\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);
@ -24,10 +24,10 @@ use phpOMS\Module\InstallerAbstract;
/** /**
* Installer class. * Installer class.
* *
* @package Modules\Dashboard\Admin * @package Modules\Dashboard\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\Dashboard\Admin * @package Modules\Dashboard\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\Dashboard\Admin * @package Modules\Dashboard\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\Dashboard\Admin * @package Modules\Dashboard\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\Dashboard\Admin * @package Modules\Dashboard\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\Dashboard\Admin * @package Modules\Dashboard\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\Dashboard\Admin * @package Modules\Dashboard\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\Dashboard * @package Modules\Dashboard
* @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);
@ -28,10 +28,10 @@ use phpOMS\Model\Message\FormValidation;
/** /**
* Api controller for the dashboard module. * Api controller for the dashboard module.
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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
{ {
@ -42,7 +42,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 validateBoardCreate(RequestAbstract $request) : array private function validateBoardCreate(RequestAbstract $request) : array
{ {
@ -66,7 +66,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiBoardCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiBoardCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -88,7 +88,7 @@ final class ApiController extends Controller
* *
* @return DashboardBoard Returns the created board from the request * @return DashboardBoard Returns the created board from the request
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createBoardFromRequest(RequestAbstract $request) : DashboardBoard private function createBoardFromRequest(RequestAbstract $request) : DashboardBoard
{ {
@ -107,7 +107,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 validateComponentCreate(RequestAbstract $request) : array private function validateComponentCreate(RequestAbstract $request) : array
{ {
@ -132,7 +132,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiComponentCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiComponentCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {
@ -154,7 +154,7 @@ final class ApiController extends Controller
* *
* @return DashboardComponent Returns the created board from the request * @return DashboardComponent Returns the created board from the request
* *
* @since 1.0.0 * @since 1.0.0
*/ */
private function createComponentFromRequest(RequestAbstract $request) : DashboardComponent private function createComponentFromRequest(RequestAbstract $request) : DashboardComponent
{ {
@ -177,7 +177,7 @@ final class ApiController extends Controller
* *
* @api * @api
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function apiComponentAdd(RequestAbstract $request, ResponseAbstract $response, $data = null) : void public function apiComponentAdd(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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);
@ -25,21 +25,23 @@ use phpOMS\Views\View;
/** /**
* Dashboard class. * Dashboard class.
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @license OMS License 1.0 * @license OMS License 1.0
* @link https://orange-management.org * @link https://orange-management.org
* @since 1.0.0 * @since 1.0.0
*/ */
final class BackendController extends Controller final class BackendController extends Controller
{ {
/** /**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request * @param RequestAbstract $request Request
* @param ResponseAbstract $response Response * @param ResponseAbstract $response Response
* @param mixed $data Generic data * @param mixed $data Generic data
* *
* @return RenderableInterface * @return RenderableInterface
* *
* @since 1.0.0 * @since 1.0.0
* @codeCoverageIgnore * @codeCoverageIgnore
*/ */
public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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;
/** /**
* Dashboard class. * Dashboard class.
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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 = 'Dashboard'; public const MODULE_NAME = 'Dashboard';
@ -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 = 1000200000; public const MODULE_ID = 1000200000;
@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Providing. * Providing.
* *
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $providing = []; protected static array $providing = [];
@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Dependencies. * Dependencies.
* *
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static array $dependencies = []; protected static array $dependencies = [];

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,17 +19,17 @@ use phpOMS\Stdlib\Base\Exception\InvalidEnumValue;
/** /**
* DashboardBoard class. * DashboardBoard class.
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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 DashboardBoard implements \JsonSerializable class DashboardBoard implements \JsonSerializable
{ {
/** /**
* ID. * ID.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $id = 0; protected int $id = 0;
@ -37,7 +37,7 @@ class DashboardBoard implements \JsonSerializable
/** /**
* Title. * Title.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $title = ''; protected string $title = '';
@ -45,7 +45,7 @@ class DashboardBoard implements \JsonSerializable
/** /**
* Account. * Account.
* *
* @var null|int * @var null|int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $account = null; protected $account = null;
@ -53,7 +53,7 @@ class DashboardBoard implements \JsonSerializable
/** /**
* Status. * Status.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $status = DashboardBoardStatus::ACTIVE; protected int $status = DashboardBoardStatus::ACTIVE;
@ -61,7 +61,7 @@ class DashboardBoard implements \JsonSerializable
/** /**
* Dashboard component. * Dashboard component.
* *
* @var DashboardComponent[] * @var DashboardComponent[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected array $components = []; protected array $components = [];
@ -71,7 +71,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -83,7 +83,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return null|int * @return null|int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getAccount() public function getAccount()
{ {
@ -97,7 +97,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setAccount($id) : void public function setAccount($id) : void
{ {
@ -109,7 +109,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getTitle() : string public function getTitle() : string
{ {
@ -123,7 +123,7 @@ class DashboardBoard 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
{ {
@ -135,7 +135,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getStatus() : int public function getStatus() : int
{ {
@ -151,7 +151,7 @@ class DashboardBoard 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
{ {
@ -169,7 +169,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addComponent(DashboardComponent $element) : int public function addComponent(DashboardComponent $element) : int
{ {
@ -189,7 +189,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function removeComponent($id) : bool public function removeComponent($id) : bool
{ {
@ -207,7 +207,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return DashboardComponent[] * @return DashboardComponent[]
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getComponents() : array public function getComponents() : array
{ {
@ -221,7 +221,7 @@ class DashboardBoard implements \JsonSerializable
* *
* @return DashboardComponent * @return DashboardComponent
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getComponent(int $id) : DashboardComponent public function getComponent(int $id) : DashboardComponent
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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 phpOMS\DataStorage\Database\DataMapperAbstract;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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 DashboardBoardMapper extends DataMapperAbstract final class DashboardBoardMapper 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 = [
@ -43,7 +43,7 @@ final class DashboardBoardMapper 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 = [
@ -58,7 +58,7 @@ final class DashboardBoardMapper 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 = [
@ -71,7 +71,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'dashboard_board'; protected static string $table = 'dashboard_board';
@ -79,7 +79,7 @@ final class DashboardBoardMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'dashboard_board_id'; protected static string $primaryField = 'dashboard_board_id';

View File

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

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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\Dashboard\Models;
/** /**
* DashboardBoard class. * DashboardBoard class.
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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 DashboardComponent implements \JsonSerializable class DashboardComponent implements \JsonSerializable
{ {
/** /**
* ID. * ID.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $id = 0; protected int $id = 0;
@ -35,7 +35,7 @@ class DashboardComponent implements \JsonSerializable
/** /**
* Order. * Order.
* *
* @var int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected int $order = 0; protected int $order = 0;
@ -43,7 +43,7 @@ class DashboardComponent implements \JsonSerializable
/** /**
* Board. * Board.
* *
* @var int|DashboardBoard * @var int|DashboardBoard
* @since 1.0.0 * @since 1.0.0
*/ */
protected $board = 0; protected $board = 0;
@ -51,7 +51,7 @@ class DashboardComponent implements \JsonSerializable
/** /**
* Module. * Module.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $module = ''; protected string $module = '';
@ -59,7 +59,7 @@ class DashboardComponent implements \JsonSerializable
/** /**
* Component. * Component.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected string $component = ''; protected string $component = '';
@ -69,7 +69,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getId() : int public function getId() : int
{ {
@ -81,7 +81,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return int * @return int
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getOrder() : int public function getOrder() : int
{ {
@ -95,7 +95,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setOrder(int $order) : void public function setOrder(int $order) : void
{ {
@ -107,7 +107,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getComponent() : string public function getComponent() : string
{ {
@ -121,7 +121,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setComponent(string $component) : void public function setComponent(string $component) : void
{ {
@ -133,7 +133,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return string * @return string
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getModule() : string public function getModule() : string
{ {
@ -147,7 +147,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setModule(string $module) : void public function setModule(string $module) : void
{ {
@ -159,7 +159,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return int|DashboardBoard * @return int|DashboardBoard
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function getBoard() public function getBoard()
{ {
@ -173,7 +173,7 @@ class DashboardComponent implements \JsonSerializable
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setBoard($id) : void public function setBoard($id) : void
{ {

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @copyright Dennis Eichhorn * @copyright Dennis Eichhorn
* @license OMS License 1.0 * @license OMS License 1.0
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1); declare(strict_types=1);
@ -19,17 +19,17 @@ use phpOMS\DataStorage\Database\DataMapperAbstract;
/** /**
* Mapper class. * Mapper class.
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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 DashboardComponentMapper extends DataMapperAbstract final class DashboardComponentMapper 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 = [
@ -43,7 +43,7 @@ final class DashboardComponentMapper 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 = [
@ -56,7 +56,7 @@ final class DashboardComponentMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $table = 'dashboard_component'; protected static string $table = 'dashboard_component';
@ -64,7 +64,7 @@ final class DashboardComponentMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static string $primaryField = 'dashboard_component_id'; protected static string $primaryField = 'dashboard_component_id';

View File

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

View File

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

View File

@ -4,11 +4,11 @@
* *
* PHP Version 7.4 * PHP Version 7.4
* *
* @package Modules\Dashboard * @package Modules\Dashboard
* @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\Dashboard * @package Modules\Dashboard
* @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 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' => [
'Dashboard' => 'Dashboard', 'Dashboard' => 'Dashboard',