mirror of
https://github.com/Karaka-Management/oms-Auditor.git
synced 2026-02-01 06:48:41 +00:00
Make classes final
This commit is contained in:
parent
7009ce7abb
commit
f0fc099c6e
28
Controller/ApiController.php
Normal file
28
Controller/ApiController.php
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
/**
|
||||
* Orange Management
|
||||
*
|
||||
* PHP Version 7.2
|
||||
*
|
||||
* @package Modules\Auditor
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link http://website.orange-management.de
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
namespace Modules\Auditor\Controller;
|
||||
|
||||
use phpOMS\Message\Http\RequestStatusCode;
|
||||
use phpOMS\Message\RequestAbstract;
|
||||
use phpOMS\Message\ResponseAbstract;
|
||||
use phpOMS\Message\NotificationLevel;
|
||||
use phpOMS\Module\ModuleAbstract;
|
||||
use phpOMS\Views\View;
|
||||
use phpOMS\Account\PermissionType;
|
||||
use phpOMS\DataStorage\Database\RelationType;
|
||||
|
||||
final class ApiController extends Controller
|
||||
{
|
||||
}
|
||||
|
|
@ -33,7 +33,7 @@ use Modules\Auditor\Models\Audit;
|
|||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class BackendController extends Controller
|
||||
final class BackendController extends Controller
|
||||
{
|
||||
/**
|
||||
* @param RequestAbstract $request Request
|
||||
|
|
|
|||
|
|
@ -14,7 +14,9 @@ declare(strict_types=1);
|
|||
|
||||
namespace Modules\Auditor\Models;
|
||||
|
||||
class Audit
|
||||
use phpOMS\Account\Account;
|
||||
|
||||
final class Audit
|
||||
{
|
||||
private $id = 0;
|
||||
|
||||
|
|
@ -36,86 +38,53 @@ class Audit
|
|||
|
||||
private $createdAt = null;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
public function __construct(
|
||||
Account $account,
|
||||
string $old,
|
||||
string $new,
|
||||
int $type = 0,
|
||||
int $subtype = 0,
|
||||
string $module = null,
|
||||
string $content = null
|
||||
) {
|
||||
$this->createdAt = new \DateTime('now');
|
||||
}
|
||||
|
||||
public function setType(int $type) : void
|
||||
{
|
||||
$this->type = $type;
|
||||
}
|
||||
|
||||
public function getType() : int
|
||||
{
|
||||
return $this->type;
|
||||
}
|
||||
|
||||
public function setSubType(int $subtype) : void
|
||||
{
|
||||
$this->subtype = $subtype;
|
||||
}
|
||||
|
||||
public function getSubType() : int
|
||||
{
|
||||
return $this->subtype;
|
||||
}
|
||||
|
||||
public function setModule(int $module) : void
|
||||
{
|
||||
$this->module = $module;
|
||||
}
|
||||
|
||||
public function getModule() : int
|
||||
{
|
||||
return $this->module;
|
||||
}
|
||||
|
||||
public function setRef(string $ref) : void
|
||||
{
|
||||
$this->ref = $ref;
|
||||
}
|
||||
|
||||
public function getRef() : string
|
||||
{
|
||||
return $this->ref;
|
||||
}
|
||||
|
||||
public function setContent(string $content) : void
|
||||
{
|
||||
$this->content = $content;
|
||||
}
|
||||
|
||||
public function getContent() : string
|
||||
{
|
||||
return $this->content;
|
||||
}
|
||||
|
||||
public function setOld(string $old) : void
|
||||
{
|
||||
$this->old = $old;
|
||||
}
|
||||
|
||||
public function getOld() : string
|
||||
{
|
||||
return $this->old;
|
||||
}
|
||||
|
||||
public function setNew(string $new) : void
|
||||
{
|
||||
$this->new = $new;
|
||||
}
|
||||
|
||||
public function getNew() : string
|
||||
{
|
||||
return $this->new;
|
||||
}
|
||||
|
||||
public function setCreatedBy($createdBy) : void
|
||||
{
|
||||
$this->createdBy = $createdBy;
|
||||
}
|
||||
|
||||
public function getCreatedBy()
|
||||
{
|
||||
return $this->createdBy;
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ use phpOMS\DataStorage\Database\RelationType;
|
|||
* @link http://website.orange-management.de
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class AuditMapper extends DataMapperAbstract
|
||||
final class AuditMapper extends DataMapperAbstract
|
||||
{
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user