From 352415126ff0abfb4cde2368106822efcf9da68f Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 7 Dec 2016 20:23:04 +0100 Subject: [PATCH] Prepare const visibility --- Controller.php | 6 +++--- Models/AccountType.php | 8 ++++---- Models/TimeRangeType.php | 8 ++++---- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Controller.php b/Controller.php index ae40fc5..9f000fd 100644 --- a/Controller.php +++ b/Controller.php @@ -45,7 +45,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string * @since 1.0.0 */ - const MODULE_PATH = __DIR__; + /* public */ const MODULE_PATH = __DIR__; /** * Module version. @@ -53,7 +53,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string * @since 1.0.0 */ - const MODULE_VERSION = '1.0.0'; + /* public */ const MODULE_VERSION = '1.0.0'; /** * Module name. @@ -61,7 +61,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string * @since 1.0.0 */ - const MODULE_NAME = 'Accounting'; + /* public */ const MODULE_NAME = 'Accounting'; /** * Providing. diff --git a/Models/AccountType.php b/Models/AccountType.php index 7372ae5..3be4bfe 100644 --- a/Models/AccountType.php +++ b/Models/AccountType.php @@ -30,11 +30,11 @@ use phpOMS\Datatypes\Enum; */ abstract class AccountType extends Enum { - const IMPERSONAL = 0; + /* public */ const IMPERSONAL = 0; - const PERSONAL = 1; + /* public */ const PERSONAL = 1; - const CREDITOR = 2; + /* public */ const CREDITOR = 2; - const DEBITOR = 3; + /* public */ const DEBITOR = 3; } diff --git a/Models/TimeRangeType.php b/Models/TimeRangeType.php index 91652f3..b553422 100644 --- a/Models/TimeRangeType.php +++ b/Models/TimeRangeType.php @@ -30,8 +30,8 @@ use phpOMS\Datatypes\Enum; */ abstract class TimeRangeType extends Enum { - const ENTRY_DATE = 0; /* Date of when the entry happened */ - const DUE_DATE = 1; /* Date of when the entry is due (only for invoices) */ - const RECEIPT_DATE = 2; /* Date of the receipt */ - const ASSOCIATED_DATE = 3; /* Date of the association (e.g. when did the articles arrive) */ + /* public */ const ENTRY_DATE = 0; /* Date of when the entry happened */ + /* public */ const DUE_DATE = 1; /* Date of when the entry is due (only for invoices) */ + /* public */ const RECEIPT_DATE = 2; /* Date of the receipt */ + /* public */ const ASSOCIATED_DATE = 3; /* Date of the association (e.g. when did the articles arrive) */ }