fix phpcs findings

This commit is contained in:
Dennis Eichhorn 2019-09-12 19:48:00 +02:00
parent 061df3c320
commit 4c4cd2cb91
27 changed files with 299 additions and 285 deletions

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper\Admin\Install
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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;
/**
* Media class.
*
* @package Modules\Helper\Admin\Install
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\Admin\Install
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class Media
{
@ -34,7 +34,7 @@ class Media
*
* @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\Helper\Admin\Install
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Admin\Install
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\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\Helper\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Admin
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\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\Helper\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Admin
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\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\Helper\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Admin
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\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\Helper\Admin
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Admin
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\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\Helper
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -57,6 +57,8 @@ final class ApiController extends Controller
{
/**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param mixed $data Generic data
@ -65,7 +67,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
public function apiHelperExport(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{
@ -104,7 +106,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
private function setHelperResponseHeader(View $view, string $name, RequestAbstract $request, ResponseAbstract $response) : void
{
@ -147,7 +149,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
private function createView(Template $template, RequestAbstract $request, ResponseAbstract $response) : View
{
@ -221,6 +223,8 @@ final class ApiController extends Controller
}
/**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param mixed $data Generic data
@ -229,7 +233,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
public function apiTemplateCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{
@ -261,7 +265,7 @@ final class ApiController extends Controller
*
* @return Collection
*
* @since 1.0.0
* @since 1.0.0
*/
private function createMediaCollectionFromRequest(RequestAbstract $request) : Collection
{
@ -297,7 +301,7 @@ final class ApiController extends Controller
*
* @return Template
*
* @since 1.0.0
* @since 1.0.0
*/
private function createTemplateFromRequest(RequestAbstract $request, int $collectionId) : Template
{
@ -322,6 +326,8 @@ final class ApiController extends Controller
}
/**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param mixed $data Generic data
@ -330,7 +336,7 @@ final class ApiController extends Controller
*
* @api
*
* @since 1.0.0
* @since 1.0.0
*/
public function apiReportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
{
@ -366,7 +372,7 @@ final class ApiController extends Controller
*
* @return Report
*
* @since 1.0.0
* @since 1.0.0
*/
private function createReportFromRequest(RequestAbstract $request, ResponseAbstract $response, int $collectionId) : Report
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -48,13 +48,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
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
public function viewTemplateList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -71,13 +73,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
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
public function viewTemplateCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -95,13 +99,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
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
public function viewReportCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
@ -119,6 +125,8 @@ final class BackendController extends Controller
}
/**
* Routing end-point for application behaviour.
*
* @param RequestAbstract $request Request
* @param ResponseAbstract $response Response
* @param mixed $data Generic data
@ -127,7 +135,7 @@ final class BackendController extends Controller
*
* @throws \Exception
*
* @since 1.0.0
* @since 1.0.0
* @codeCoverageIgnore
*/
public function viewHelperReport(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
@ -39,7 +39,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module path.
*
* @var string
* @var string
* @since 1.0.0
*/
public const MODULE_PATH = __DIR__ . '/../';
@ -47,7 +47,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module version.
*
* @var string
* @var string
* @since 1.0.0
*/
public const MODULE_VERSION = '1.0.0';
@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module name.
*
* @var string
* @var string
* @since 1.0.0
*/
public const MODULE_NAME = 'Helper';
@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Module id.
*
* @var int
* @var int
* @since 1.0.0
*/
public const MODULE_ID = 1002700000;
@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface
/**
* Providing.
*
* @var string[]
* @var string[]
* @since 1.0.0
*/
protected static array $providing = [];
@ -79,7 +79,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\Helper\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\Models
* @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;
/**
* Helper status.
*
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
abstract class HelperStatus extends Enum
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Models;
/**
* Report model.
*
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class NullReport extends Report
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Models;
/**
* Report model.
*
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class NullTemplate extends Template
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper
* @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\Helper
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper
* @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\Helper\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Models;
/**
* Report model.
*
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class Report implements \JsonSerializable
{
@ -28,7 +28,7 @@ class Report implements \JsonSerializable
/**
* Report Id.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $id = 0;
@ -36,7 +36,7 @@ class Report implements \JsonSerializable
/**
* Report status.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $status = HelperStatus::INACTIVE;
@ -44,7 +44,7 @@ class Report implements \JsonSerializable
/**
* Report title.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $title = '';
@ -52,7 +52,7 @@ class Report implements \JsonSerializable
/**
* Report description.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $description = '';
@ -60,7 +60,7 @@ class Report implements \JsonSerializable
/**
* Report description.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
@ -68,7 +68,7 @@ class Report implements \JsonSerializable
/**
* Report created at.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected ?\DateTime $createdAt = null;
@ -76,7 +76,7 @@ class Report implements \JsonSerializable
/**
* Report created by.
*
* @var int
* @var int
* @since 1.0.0
*/
private $createdBy = 0;
@ -84,7 +84,7 @@ class Report implements \JsonSerializable
/**
* Report template.
*
* @var null|int|Media
* @var null|int|Media
* @since 1.0.0
*/
private $template = 0;
@ -92,7 +92,7 @@ class Report implements \JsonSerializable
/**
* Report source.
*
* @var int|\Modules\Media\Models\Collection
* @var int|\Modules\Media\Models\Collection
* @since 1.0.0
*/
private $source = 0;
@ -100,7 +100,7 @@ class Report implements \JsonSerializable
/**
* Constructor.
*
* @since 1.0.0
* @since 1.0.0
*/
public function __construct()
{
@ -110,7 +110,7 @@ class Report implements \JsonSerializable
/**
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getId() : int
{
@ -120,7 +120,7 @@ class Report implements \JsonSerializable
/**
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getStatus() : int
{
@ -132,7 +132,7 @@ class Report implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setStatus(int $status) : void
{
@ -142,7 +142,7 @@ class Report implements \JsonSerializable
/**
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTitle() : string
{
@ -154,7 +154,7 @@ class Report implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setTitle(string $title) : void
{
@ -164,7 +164,7 @@ class Report implements \JsonSerializable
/**
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDescription() : string
{
@ -176,7 +176,7 @@ class Report implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDescription(string $description) : void
{
@ -186,7 +186,7 @@ class Report implements \JsonSerializable
/**
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
@ -198,7 +198,7 @@ class Report implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDescriptionRaw(string $descriptionRaw) : void
{
@ -208,7 +208,7 @@ class Report implements \JsonSerializable
/**
* @return \DateTime
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCreatedAt() : \DateTime
{
@ -218,7 +218,7 @@ class Report implements \JsonSerializable
/**
* @return int|\phpOMS\Account\Account
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCreatedBy()
{
@ -230,7 +230,7 @@ class Report implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setCreatedBy($creator) : void
{
@ -240,7 +240,7 @@ class Report implements \JsonSerializable
/**
* @return mixed
*
* @since 1.0.0
* @since 1.0.0
*/
public function getTemplate()
{
@ -252,7 +252,7 @@ class Report implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setTemplate($template) : void
{
@ -264,7 +264,7 @@ class Report implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setSource($source) : void
{
@ -274,7 +274,7 @@ class Report implements \JsonSerializable
/**
* @return \Modules\Media\Models\Collection|int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getSource()
{
@ -284,7 +284,7 @@ class Report implements \JsonSerializable
/**
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public function toArray() : array
{

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);
@ -23,7 +23,7 @@ final class ReportMapper 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 = [
@ -41,7 +41,7 @@ final class ReportMapper 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 = [
@ -58,7 +58,7 @@ final class ReportMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static array $belongsTo = [
@ -71,7 +71,7 @@ final class ReportMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'helper_report';
@ -79,7 +79,7 @@ final class ReportMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'helper_report_id';
@ -87,7 +87,7 @@ final class ReportMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'helper_report_created';

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\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\Helper\Models;
/**
* Template model.
*
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class Template implements \JsonSerializable
{
@ -28,7 +28,7 @@ class Template implements \JsonSerializable
/**
* Template Id.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $id = 0;
@ -36,7 +36,7 @@ class Template implements \JsonSerializable
/**
* Template status.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $status = HelperStatus::INACTIVE;
@ -44,7 +44,7 @@ class Template implements \JsonSerializable
/**
* Template data type.
*
* @var int
* @var int
* @since 1.0.0
*/
private int $datatype = TemplateDataType::OTHER;
@ -52,7 +52,7 @@ class Template implements \JsonSerializable
/**
* Template doesn't need reports.
*
* @var bool
* @var bool
* @since 1.0.0
*/
private bool $isStandalone = false;
@ -60,7 +60,7 @@ class Template implements \JsonSerializable
/**
* Template name.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $name = '';
@ -68,7 +68,7 @@ class Template implements \JsonSerializable
/**
* Template description.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $description = '';
@ -76,7 +76,7 @@ class Template implements \JsonSerializable
/**
* Template description.
*
* @var string
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
@ -84,7 +84,7 @@ class Template implements \JsonSerializable
/**
* Template created at.
*
* @var null|\DateTime
* @var null|\DateTime
* @since 1.0.0
*/
protected ?\DateTime $createdAt = null;
@ -92,7 +92,7 @@ class Template implements \JsonSerializable
/**
* Template created by.
*
* @var int
* @var int
* @since 1.0.0
*/
private $createdBy = 0;
@ -100,7 +100,7 @@ class Template implements \JsonSerializable
/**
* Template source.
*
* @var int|Media
* @var int|Media
* @since 1.0.0
*/
private $source = 0;
@ -108,7 +108,7 @@ class Template implements \JsonSerializable
/**
* Expected files.
*
* @var array
* @var array
* @since 1.0.0
*/
private array $expected = [];
@ -116,7 +116,7 @@ class Template implements \JsonSerializable
/**
* Reports.
*
* @var array
* @var array
* @since 1.0.0
*/
private array $reports = [];
@ -124,7 +124,7 @@ class Template implements \JsonSerializable
/**
* Constructor
*
* @since 1.0.0
* @since 1.0.0
*/
public function __construct()
{
@ -134,7 +134,7 @@ class Template implements \JsonSerializable
/**
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getId() : int
{
@ -155,7 +155,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setName(string $name) : void
{
@ -165,7 +165,7 @@ class Template implements \JsonSerializable
/**
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getName() : string
{
@ -177,7 +177,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDescription(string $description) : void
{
@ -187,7 +187,7 @@ class Template implements \JsonSerializable
/**
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDescription() : string
{
@ -199,7 +199,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDescriptionRaw(string $description) : void
{
@ -209,7 +209,7 @@ class Template implements \JsonSerializable
/**
* @return string
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDescriptionRaw() : string
{
@ -221,7 +221,7 @@ class Template implements \JsonSerializable
*
* @return mixed
*
* @since 1.0.0
* @since 1.0.0
*/
public function setSource($source)
{
@ -231,7 +231,7 @@ class Template implements \JsonSerializable
/**
* @return mixed
*
* @since 1.0.0
* @since 1.0.0
*/
public function getSource()
{
@ -243,7 +243,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setCreatedBy($createdBy) : void
{
@ -253,7 +253,7 @@ class Template implements \JsonSerializable
/**
* @return int|\phpOMS\Account\Account
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCreatedBy()
{
@ -263,7 +263,7 @@ class Template implements \JsonSerializable
/**
* @return \DateTime
*
* @since 1.0.0
* @since 1.0.0
*/
public function getCreatedAt() : \DateTime
{
@ -275,7 +275,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setExpected(array $expected) : void
{
@ -285,7 +285,7 @@ class Template implements \JsonSerializable
/**
* @return array
*
* @since 1.0.0
* @since 1.0.0
*/
public function getExpected() : array
{
@ -297,7 +297,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function addExpected(string $expected) : void
{
@ -309,7 +309,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setStatus(int $status) : void
{
@ -319,7 +319,7 @@ class Template implements \JsonSerializable
/**
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getStatus() : int
{
@ -331,7 +331,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setDatatype(int $datatype) : void
{
@ -341,7 +341,7 @@ class Template implements \JsonSerializable
/**
* @return int
*
* @since 1.0.0
* @since 1.0.0
*/
public function getDatatype() : int
{
@ -353,7 +353,7 @@ class Template implements \JsonSerializable
*
* @return void
*
* @since 1.0.0
* @since 1.0.0
*/
public function setStandalone(bool $isStandalone) : void
{
@ -363,7 +363,7 @@ class Template implements \JsonSerializable
/**
* @return bool
*
* @since 1.0.0
* @since 1.0.0
*/
public function isStandalone() : bool
{

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper\Models
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\Models
* @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;
/**
* Helper status.
*
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\Models
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
abstract class TemplateDataType 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);
@ -24,7 +24,7 @@ final class TemplateMapper 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 = [
@ -46,7 +46,7 @@ final class TemplateMapper 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 = [
@ -59,7 +59,7 @@ final class TemplateMapper extends DataMapperAbstract
/**
* Belongs to.
*
* @var array<string, array<string, string>>
* @var array<string, array<string, string>>
* @since 1.0.0
*/
protected static array $belongsTo = [
@ -72,7 +72,7 @@ final class TemplateMapper 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 = [
@ -87,7 +87,7 @@ final class TemplateMapper extends DataMapperAbstract
/**
* Primary table.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $table = 'helper_template';
@ -95,7 +95,7 @@ final class TemplateMapper extends DataMapperAbstract
/**
* Created at.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $createdAt = 'helper_template_created';
@ -103,7 +103,7 @@ final class TemplateMapper extends DataMapperAbstract
/**
* Primary field name.
*
* @var string
* @var string
* @since 1.0.0
*/
protected static string $primaryField = 'helper_template_id';

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' => [
'Create' => 'Create',

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
*/
$MODLANG[27] = [
];

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 ['Helper' => [
'Add' => 'Add',

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
*/
/**

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

View File

@ -4,11 +4,11 @@
*
* PHP Version 7.4
*
* @package Modules\Helper\Views
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link https://orange-management.org
* @package Modules\Helper\Views
* @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\Views\View;
/**
* Helper view.
*
* @package Modules\Helper\Views
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
* @package Modules\Helper\Views
* @license OMS License 1.0
* @link https://orange-management.org
* @since 1.0.0
*/
class HelperView extends View
{