mirror of
https://github.com/Karaka-Management/oms-Organization.git
synced 2026-02-01 01:18:41 +00:00
Implement php 7.4 type hints
This commit is contained in:
parent
744bbbd9c3
commit
3cf2c9d15e
|
|
@ -66,7 +66,7 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $providing = [];
|
||||
protected static array $providing = [];
|
||||
|
||||
/**
|
||||
* Dependencies.
|
||||
|
|
@ -74,5 +74,5 @@ class Controller extends ModuleAbstract implements WebInterface
|
|||
* @var string[]
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $dependencies = [];
|
||||
protected static array $dependencies = [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'organization_department_id' => ['name' => 'organization_department_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'organization_department_name' => ['name' => 'organization_department_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'organization_department_description' => ['name' => 'organization_department_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -48,7 +48,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'unit' => [
|
||||
'mapper' => UnitMapper::class,
|
||||
'dest' => 'organization_department_unit',
|
||||
|
|
@ -65,7 +65,7 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'organization_department';
|
||||
protected static string $table = 'organization_department';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -73,5 +73,5 @@ final class DepartmentMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'organization_department_id';
|
||||
protected static string $primaryField = 'organization_department_id';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -33,7 +33,7 @@ final class PositionMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'organization_position_id' => ['name' => 'organization_position_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'organization_position_name' => ['name' => 'organization_position_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'organization_position_description' => ['name' => 'organization_position_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -49,7 +49,7 @@ final class PositionMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'parent' => [
|
||||
'mapper' => self::class,
|
||||
'dest' => 'organization_position_parent',
|
||||
|
|
@ -66,7 +66,7 @@ final class PositionMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'organization_position';
|
||||
protected static string $table = 'organization_position';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -74,5 +74,5 @@ final class PositionMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'organization_position_id';
|
||||
protected static string $primaryField = 'organization_position_id';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -32,7 +32,7 @@ final class UnitMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'organization_unit_id' => ['name' => 'organization_unit_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'organization_unit_name' => ['name' => 'organization_unit_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'organization_unit_description' => ['name' => 'organization_unit_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -47,7 +47,7 @@ final class UnitMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $belongsTo = [
|
||||
protected static array $belongsTo = [
|
||||
'unit' => [
|
||||
'mapper' => self::class,
|
||||
'dest' => 'organization_uni_parent',
|
||||
|
|
@ -64,7 +64,7 @@ final class UnitMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'organization_unit';
|
||||
protected static string $table = 'organization_unit';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -72,5 +72,5 @@ final class UnitMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'organization_unit_id';
|
||||
protected static string $primaryField = 'organization_unit_id';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user