diff --git a/Controller/Controller.php b/Controller/Controller.php index 5284395..1af56a0 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -67,7 +67,7 @@ class Controller extends ModuleAbstract implements WebInterface * @var string[] * @since 1.0.0 */ - protected static $providing = []; + protected static array $providing = []; /** * Dependencies. @@ -75,5 +75,5 @@ class Controller extends ModuleAbstract implements WebInterface * @var string[] * @since 1.0.0 */ - protected static $dependencies = []; + protected static array $dependencies = []; } diff --git a/Models/EmployeeHistoryMapper.php b/Models/EmployeeHistoryMapper.php index d434e9c..71b0a64 100644 --- a/Models/EmployeeHistoryMapper.php +++ b/Models/EmployeeHistoryMapper.php @@ -27,7 +27,7 @@ final class EmployeeHistoryMapper extends DataMapperAbstract * @var array> * @since 1.0.0 */ - protected static $columns = [ + protected static array $columns = [ 'hr_staff_history_id' => ['name' => 'hr_staff_history_id', 'type' => 'int', 'internal' => 'id'], 'hr_staff_history_staff' => ['name' => 'hr_staff_history_staff', 'type' => 'int', 'internal' => 'employee'], 'hr_staff_history_unit' => ['name' => 'hr_staff_history_unit', 'type' => 'int', 'internal' => 'unit'], @@ -43,7 +43,7 @@ final class EmployeeHistoryMapper extends DataMapperAbstract * @var array> * @since 1.0.0 */ - protected static $belongsTo = [ + protected static array $belongsTo = [ 'unit' => [ 'mapper' => UnitMapper::class, 'src' => 'hr_staff_history_unit', @@ -64,7 +64,7 @@ final class EmployeeHistoryMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $primaryField = 'hr_staff_history_id'; + protected static string $primaryField = 'hr_staff_history_id'; /** * Primary table. @@ -72,5 +72,5 @@ final class EmployeeHistoryMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $table = 'hr_staff_history'; + protected static string $table = 'hr_staff_history'; } diff --git a/Models/EmployeeMapper.php b/Models/EmployeeMapper.php index 7f44f7d..5969f9b 100644 --- a/Models/EmployeeMapper.php +++ b/Models/EmployeeMapper.php @@ -26,7 +26,7 @@ final class EmployeeMapper extends DataMapperAbstract * @var array> * @since 1.0.0 */ - protected static $columns = [ + protected static array $columns = [ 'hr_staff_id' => ['name' => 'hr_staff_id', 'type' => 'int', 'internal' => 'id'], 'hr_staff_account' => ['name' => 'hr_staff_account', 'type' => 'int', 'internal' => 'account'], ]; @@ -37,7 +37,7 @@ final class EmployeeMapper extends DataMapperAbstract * @var array> * @since 1.0.0 */ - protected static $belongsTo = [ + protected static array $belongsTo = [ 'account' => [ 'mapper' => AccountMapper::class, 'src' => 'hr_staff_account', @@ -50,7 +50,7 @@ final class EmployeeMapper extends DataMapperAbstract * @var array> * @since 1.0.0 */ - protected static $hasMany = [ + protected static array $hasMany = [ 'history' => [ 'mapper' => EmployeeHistoryMapper::class, 'table' => 'hr_staff_history', @@ -65,7 +65,7 @@ final class EmployeeMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $table = 'hr_staff'; + protected static string $table = 'hr_staff'; /** * Primary field name. @@ -73,5 +73,5 @@ final class EmployeeMapper extends DataMapperAbstract * @var string * @since 1.0.0 */ - protected static $primaryField = 'hr_staff_id'; + protected static string $primaryField = 'hr_staff_id'; }