From 0b5956dfef35b306400b653457280d1d6f236904 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 31 May 2018 19:47:26 +0200 Subject: [PATCH] Re-format mappers --- Controller.php | 4 ++-- Models/Audit.php | 2 +- Models/AuditMapper.php | 22 +++++++++++++++------- 3 files changed, 18 insertions(+), 10 deletions(-) diff --git a/Controller.php b/Controller.php index 817e845..f7e1ff6 100644 --- a/Controller.php +++ b/Controller.php @@ -4,7 +4,7 @@ * * PHP Version 7.2 * - * @package TBD + * @package Modules\Auditor * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -28,7 +28,7 @@ use Modules\Auditor\Models\Audit; /** * Calendar controller class. * - * @package Modules + * @package Modules\Auditor * @license OMS License 1.0 * @link http://website.orange-management.de * @since 1.0.0 diff --git a/Models/Audit.php b/Models/Audit.php index 3ae5eea..cb65fde 100644 --- a/Models/Audit.php +++ b/Models/Audit.php @@ -4,7 +4,7 @@ * * PHP Version 7.2 * - * @package TBD + * @package Modules\Auditor * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 diff --git a/Models/AuditMapper.php b/Models/AuditMapper.php index 07a5ccc..e682325 100644 --- a/Models/AuditMapper.php +++ b/Models/AuditMapper.php @@ -4,7 +4,7 @@ * * PHP Version 7.2 * - * @package TBD + * @package Modules\Auditor * @copyright Dennis Eichhorn * @license OMS License 1.0 * @version 1.0.0 @@ -20,6 +20,14 @@ use phpOMS\DataStorage\Database\Query\Builder; use phpOMS\DataStorage\Database\Query\Column; use phpOMS\DataStorage\Database\RelationType; +/** + * Mapper class. + * + * @package Modules\Auditor + * @license OMS License 1.0 + * @link http://website.orange-management.de + * @since 1.0.0 + */ class AuditMapper extends DataMapperAbstract { @@ -33,14 +41,14 @@ class AuditMapper extends DataMapperAbstract 'auditor_audit_id' => ['name' => 'auditor_audit_id', 'type' => 'int', 'internal' => 'id'], 'auditor_audit_created_by' => ['name' => 'auditor_audit_created_by', 'type' => 'int', 'internal' => 'createdBy'], 'auditor_audit_created_at' => ['name' => 'auditor_audit_created_at', 'type' => 'DateTime', 'internal' => 'createdAt'], - 'auditor_audit_ip' => ['name' => 'auditor_audit_ip', 'type' => 'int', 'internal' => 'ip'], - 'auditor_audit_module' => ['name' => 'auditor_audit_module', 'type' => 'int', 'internal' => 'module'], - 'auditor_audit_ref' => ['name' => 'auditor_audit_ref', 'type' => 'string', 'internal' => 'ref'], - 'auditor_audit_type' => ['name' => 'auditor_audit_type', 'type' => 'int', 'internal' => 'type'], + 'auditor_audit_ip' => ['name' => 'auditor_audit_ip', 'type' => 'int', 'internal' => 'ip'], + 'auditor_audit_module' => ['name' => 'auditor_audit_module', 'type' => 'int', 'internal' => 'module'], + 'auditor_audit_ref' => ['name' => 'auditor_audit_ref', 'type' => 'string', 'internal' => 'ref'], + 'auditor_audit_type' => ['name' => 'auditor_audit_type', 'type' => 'int', 'internal' => 'type'], 'auditor_audit_subtype' => ['name' => 'auditor_audit_subtype', 'type' => 'int', 'internal' => 'subtype'], 'auditor_audit_content' => ['name' => 'auditor_audit_content', 'type' => 'string', 'internal' => 'content'], - 'auditor_audit_old' => ['name' => 'auditor_audit_old', 'type' => 'string', 'internal' => 'old'], - 'auditor_audit_new' => ['name' => 'auditor_audit_new', 'type' => 'string', 'internal' => 'new'], + 'auditor_audit_old' => ['name' => 'auditor_audit_old', 'type' => 'string', 'internal' => 'old'], + 'auditor_audit_new' => ['name' => 'auditor_audit_new', 'type' => 'string', 'internal' => 'new'], ]; static protected $belongsTo = [