mirror of
https://github.com/Karaka-Management/oms-Exchange.git
synced 2026-02-06 04:58:40 +00:00
fix phpcs findings
This commit is contained in:
parent
0b8b52ee7d
commit
b4af6aab1b
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange\Admin\Install
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange\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\Exchange\Admin\Install
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\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
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -25,10 +25,10 @@ use phpOMS\System\File\Local\Directory;
|
|||
/**
|
||||
* Installer class.
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Installer extends InstallerAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @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\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Status extends StatusAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @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\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Uninstaller extends UninstallerAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @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\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Updater extends UpdaterAbstract
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @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\Message\ResponseAbstract;
|
|||
/**
|
||||
* Exchange controller class.
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class ApiController extends Controller
|
||||
{
|
||||
|
|
@ -42,7 +42,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @api
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function apiExchangeImport(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||
{
|
||||
|
|
@ -69,7 +69,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function importDataFromRequest(RequestAbstract $request) : bool
|
||||
{
|
||||
|
|
@ -97,7 +97,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @api
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function apiExchangeExport(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -24,10 +24,10 @@ use phpOMS\Views\View;
|
|||
/**
|
||||
* Exchange controller class.
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class BackendController extends Controller
|
||||
{
|
||||
|
|
@ -50,7 +50,7 @@ final class BackendController extends Controller
|
|||
*
|
||||
* @return RenderableInterface Response can be rendered
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function viewExchangeExportList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||
|
|
@ -82,7 +82,7 @@ final class BackendController extends Controller
|
|||
*
|
||||
* @return RenderableInterface Response can be rendered
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function viewExchangeImportList(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||
|
|
@ -114,7 +114,7 @@ final class BackendController extends Controller
|
|||
*
|
||||
* @return RenderableInterface Response can be rendered
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function viewExchangeExport(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||
|
|
@ -135,7 +135,7 @@ final class BackendController extends Controller
|
|||
*
|
||||
* @return RenderableInterface Response can be rendered
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
* @codeCoverageIgnore
|
||||
*/
|
||||
public function viewExchangeImport(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @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;
|
|||
/**
|
||||
* Exchange controller class.
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @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 = 'Exchange';
|
||||
|
|
@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Module id.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public const MODULE_ID = 1007000000;
|
||||
|
|
@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Providing.
|
||||
*
|
||||
* @var string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $providing = [];
|
||||
|
|
@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
/**
|
||||
* Dependencies.
|
||||
*
|
||||
* @var string[]
|
||||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static array $dependencies = [];
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Interfaces
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Interfaces
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -31,17 +31,17 @@ use phpOMS\Message\RequestAbstract;
|
|||
/**
|
||||
* GSD import class
|
||||
*
|
||||
* @package Modules\Exchange\Models\Interfaces\GSD
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\Models\Interfaces\GSD
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class Importer extends ImporterAbstract
|
||||
{
|
||||
/**
|
||||
* Database connection.
|
||||
*
|
||||
* @var ConnectionInterface
|
||||
* @var ConnectionInterface
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $remote = null;
|
||||
|
|
@ -54,7 +54,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function import(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -77,7 +77,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importFromRequest(RequestAbstract $request) : bool
|
||||
{
|
||||
|
|
@ -138,7 +138,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importCostCenter(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -164,7 +164,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importCostObject(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -190,7 +190,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importAddress(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -204,7 +204,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importCustomer(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -218,7 +218,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importSupplier(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -232,7 +232,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importAccount(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -246,7 +246,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importInvoice(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -260,7 +260,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importPosting(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
@ -274,7 +274,7 @@ final class Importer extends ImporterAbstract
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function importBatchPosting(\DateTime $start, \DateTime $end) : void
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @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 phpOMS\DataStorage\Database\DataMapperAbstract;
|
|||
/**
|
||||
* Mapper class.
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class GSDAddressMapper 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 = [
|
||||
|
|
@ -49,7 +49,7 @@ final class GSDAddressMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'KUNDENADRESSE';
|
||||
|
|
@ -57,7 +57,7 @@ final class GSDAddressMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Created at.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $createdAt = 'row_create_time';
|
||||
|
|
@ -65,7 +65,7 @@ final class GSDAddressMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'AdressRowId';
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @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 phpOMS\DataStorage\Database\DataMapperAbstract;
|
|||
/**
|
||||
* Mapper class.
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class GSDArticleMapper 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 = [
|
||||
|
|
@ -45,7 +45,7 @@ final class GSDArticleMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'Artikel';
|
||||
|
|
@ -53,7 +53,7 @@ final class GSDArticleMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Created at.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $createdAt = 'row_create_time';
|
||||
|
|
@ -61,7 +61,7 @@ final class GSDArticleMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'row_id';
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @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\Exchange\Interfaces\GSD\Model;
|
|||
/**
|
||||
* Cost center class.
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class GSDCostCenter implements \JsonSerializable
|
||||
{
|
||||
|
|
@ -28,7 +28,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
|
|
@ -36,7 +36,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
/**
|
||||
* Creator.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $createdBy = 0;
|
||||
|
|
@ -44,7 +44,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
/**
|
||||
* Created.
|
||||
*
|
||||
* @var null|\DateTime
|
||||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected ?\DateTime $createdAt = null;
|
||||
|
|
@ -52,7 +52,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
/**
|
||||
* Description.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected string $description = '';
|
||||
|
|
@ -60,7 +60,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
/**
|
||||
* Cost center.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected string $costCenter = '';
|
||||
|
|
@ -68,7 +68,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
|
@ -78,7 +78,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
/**
|
||||
* @return \DateTime
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCreatedAt() : \DateTime
|
||||
{
|
||||
|
|
@ -90,7 +90,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
*
|
||||
* @return int|\phpOMS\Account\Account
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCreatedBy()
|
||||
{
|
||||
|
|
@ -104,7 +104,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setCreatedBy($id) : void
|
||||
{
|
||||
|
|
@ -118,7 +118,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setDescription(string $description) : void
|
||||
{
|
||||
|
|
@ -130,7 +130,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getDescription() : string
|
||||
{
|
||||
|
|
@ -144,7 +144,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setCostCenter(string $costCenter) : void
|
||||
{
|
||||
|
|
@ -156,7 +156,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCostCenter() : string
|
||||
{
|
||||
|
|
@ -168,7 +168,7 @@ final class GSDCostCenter implements \JsonSerializable
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : int
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @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\DataMapperAbstract;
|
|||
/**
|
||||
* Mapper class.
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class GSDCostCenterMapper extends DataMapperAbstract
|
||||
{
|
||||
|
|
@ -30,7 +30,7 @@ final class GSDCostCenterMapper 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 GSDCostCenterMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'FiKostenstellen';
|
||||
|
|
@ -52,7 +52,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Created at.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $createdAt = 'row_create_time';
|
||||
|
|
@ -60,7 +60,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'ROW_ID';
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @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\Exchange\Interfaces\GSD\Model;
|
|||
/**
|
||||
* Cost object class.
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class GSDCostObject implements \JsonSerializable
|
||||
{
|
||||
|
|
@ -28,7 +28,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
/**
|
||||
* ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected int $id = 0;
|
||||
|
|
@ -36,7 +36,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
/**
|
||||
* Creator.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected $createdBy = 0;
|
||||
|
|
@ -44,7 +44,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
/**
|
||||
* Created.
|
||||
*
|
||||
* @var null|\DateTime
|
||||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected ?\DateTime $createdAt = null;
|
||||
|
|
@ -52,7 +52,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
/**
|
||||
* Description.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected string $description = '';
|
||||
|
|
@ -60,7 +60,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
/**
|
||||
* Cost object.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected string $costObject = '';
|
||||
|
|
@ -68,7 +68,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
/**
|
||||
* Constructor.
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
|
|
@ -78,7 +78,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
/**
|
||||
* @return \DateTime
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCreatedAt() : \DateTime
|
||||
{
|
||||
|
|
@ -90,7 +90,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
*
|
||||
* @return int|\phpOMS\Account\Account
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCreatedBy()
|
||||
{
|
||||
|
|
@ -104,7 +104,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setCreatedBy($id) : void
|
||||
{
|
||||
|
|
@ -118,7 +118,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setDescription(string $description) : void
|
||||
{
|
||||
|
|
@ -130,7 +130,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getDescription() : string
|
||||
{
|
||||
|
|
@ -144,7 +144,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
*
|
||||
* @return void
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function setCostObject(string $costObject) : void
|
||||
{
|
||||
|
|
@ -156,7 +156,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getCostObject() : string
|
||||
{
|
||||
|
|
@ -168,7 +168,7 @@ final class GSDCostObject implements \JsonSerializable
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : int
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @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\DataMapperAbstract;
|
|||
/**
|
||||
* Mapper class.
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class GSDCostObjectMapper extends DataMapperAbstract
|
||||
{
|
||||
|
|
@ -30,7 +30,7 @@ final class GSDCostObjectMapper 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 GSDCostObjectMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'FiKostentraeger';
|
||||
|
|
@ -52,7 +52,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Created at.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $createdAt = 'row_create_time';
|
||||
|
|
@ -60,7 +60,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'ROW_ID';
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @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 phpOMS\DataStorage\Database\DataMapperAbstract;
|
|||
/**
|
||||
* Mapper class.
|
||||
*
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange\Interfaces\GSD\Model
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class GSDCustomerMapper 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 = [
|
||||
|
|
@ -49,7 +49,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'Kunden';
|
||||
|
|
@ -57,7 +57,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Created at.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $createdAt = 'row_create_time';
|
||||
|
|
@ -65,7 +65,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'row_id';
|
||||
|
|
|
|||
|
|
@ -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 [
|
||||
'Accounts' => 'Accounts',
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Interfaces
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Interfaces
|
||||
* @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 phpOMS\Message\RequestAbstract;
|
|||
/**
|
||||
* Import abstract
|
||||
*
|
||||
* @package Interfaces
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Interfaces
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class ImporterAbstract
|
||||
{
|
||||
/**
|
||||
* Database connection.
|
||||
*
|
||||
* @var ConnectionInterface
|
||||
* @var ConnectionInterface
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $local = null;
|
||||
|
|
@ -40,7 +40,7 @@ abstract class ImporterAbstract
|
|||
*
|
||||
* @param ConnectionInterface $local Database connection
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct(ConnectionInterface $local)
|
||||
{
|
||||
|
|
@ -54,7 +54,7 @@ abstract class ImporterAbstract
|
|||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract public function importFromRequest(RequestAbstract $request) : bool;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package phpOMS\Module
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package phpOMS\Module
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
*/
|
||||
declare(strict_types=1);
|
||||
|
||||
|
|
@ -22,17 +22,17 @@ use phpOMS\Utils\ArrayUtils;
|
|||
*
|
||||
* Handling the info files for modules
|
||||
*
|
||||
* @package phpOMS\Module
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package phpOMS\Module
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class InterfaceManager
|
||||
{
|
||||
/**
|
||||
* Interface ID.
|
||||
*
|
||||
* @var int
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private int $id = 0;
|
||||
|
|
@ -40,7 +40,7 @@ class InterfaceManager
|
|||
/**
|
||||
* File path.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private string $path = '';
|
||||
|
|
@ -48,7 +48,7 @@ class InterfaceManager
|
|||
/**
|
||||
* Info data.
|
||||
*
|
||||
* @var array<string, mixed>
|
||||
* @var array<string, mixed>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $info = [];
|
||||
|
|
@ -58,7 +58,7 @@ class InterfaceManager
|
|||
*
|
||||
* @param string $path Info file path
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function __construct(string $path = '')
|
||||
{
|
||||
|
|
@ -70,7 +70,7 @@ class InterfaceManager
|
|||
*
|
||||
* @return int
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getId() : int
|
||||
{
|
||||
|
|
@ -82,7 +82,7 @@ class InterfaceManager
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getPath() : string
|
||||
{
|
||||
|
|
@ -94,7 +94,7 @@ class InterfaceManager
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getInterfacePath() : string
|
||||
{
|
||||
|
|
@ -106,7 +106,7 @@ class InterfaceManager
|
|||
*
|
||||
* @return string
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function getName() : string
|
||||
{
|
||||
|
|
@ -118,7 +118,7 @@ class InterfaceManager
|
|||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function hasImport() : bool
|
||||
{
|
||||
|
|
@ -130,7 +130,7 @@ class InterfaceManager
|
|||
*
|
||||
* @return bool
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function hasExport() : bool
|
||||
{
|
||||
|
|
@ -144,7 +144,7 @@ class InterfaceManager
|
|||
*
|
||||
* @throws PathException This exception is thrown in case the info file path doesn't exist
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function load() : void
|
||||
{
|
||||
|
|
@ -163,7 +163,7 @@ class InterfaceManager
|
|||
*
|
||||
* @throws PathException This exception is thrown in case the info file path doesn't exist
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function update() : void
|
||||
{
|
||||
|
|
@ -185,7 +185,7 @@ class InterfaceManager
|
|||
*
|
||||
* @throws \InvalidArgumentException This exception is thrown if the data is not scalar, array or jsonSerializable
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function set(string $path, $data, string $delim = '/') : void
|
||||
{
|
||||
|
|
@ -201,7 +201,7 @@ class InterfaceManager
|
|||
*
|
||||
* @return array<string, mixed>
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function get() : array
|
||||
{
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @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\DataMapperAbstract;
|
|||
/**
|
||||
* Mapper class.
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
final class InterfaceManagerMapper extends DataMapperAbstract
|
||||
{
|
||||
|
|
@ -30,7 +30,7 @@ final class InterfaceManagerMapper 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 InterfaceManagerMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary table.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $table = 'exchange';
|
||||
|
|
@ -54,7 +54,7 @@ final class InterfaceManagerMapper extends DataMapperAbstract
|
|||
/**
|
||||
* Primary field name.
|
||||
*
|
||||
* @var string
|
||||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static string $primaryField = 'exchange_id';
|
||||
|
|
|
|||
|
|
@ -4,11 +4,11 @@
|
|||
*
|
||||
* PHP Version 7.4
|
||||
*
|
||||
* @package Modules\Exchange
|
||||
* @copyright Dennis Eichhorn
|
||||
* @license OMS License 1.0
|
||||
* @version 1.0.0
|
||||
* @link https://orange-management.org
|
||||
* @package Modules\Exchange
|
||||
* @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\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
* @package Modules\Exchange
|
||||
* @license OMS License 1.0
|
||||
* @link https://orange-management.org
|
||||
* @since 1.0.0
|
||||
*/
|
||||
abstract class PermissionState extends Enum
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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' => [
|
||||
'Dashboard' => 'Dashboard',
|
||||
|
|
|
|||
|
|
@ -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 ['Exchange' => [
|
||||
'Database' => 'Database',
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -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
|
||||
*/
|
||||
|
||||
$lang = $this->getData('lang');
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user