Implement php 7.4 type hints

This commit is contained in:
Dennis Eichhorn 2019-08-15 21:55:12 +02:00
parent 772e628514
commit 58a4c1ac35
9 changed files with 28 additions and 28 deletions

View File

@ -66,7 +66,7 @@ class Controller extends ModuleAbstract implements WebInterface
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $providing = []; protected static array $providing = [];
/** /**
* Dependencies. * Dependencies.
@ -74,5 +74,5 @@ class Controller extends ModuleAbstract implements WebInterface
* @var string[] * @var string[]
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $dependencies = []; protected static array $dependencies = [];
} }

View File

@ -32,7 +32,7 @@ final class GSDAddressMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'AdressRowId' => ['name' => 'AdressRowId', 'type' => 'int', 'internal' => 'id'], 'AdressRowId' => ['name' => 'AdressRowId', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
@ -52,7 +52,7 @@ final class GSDAddressMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'KUNDENADRESSE'; protected static string $table = 'KUNDENADRESSE';
/** /**
* Created at. * Created at.
@ -60,7 +60,7 @@ final class GSDAddressMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $createdAt = 'row_create_time'; protected static string $createdAt = 'row_create_time';
/** /**
* Primary field name. * Primary field name.
@ -68,5 +68,5 @@ final class GSDAddressMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'AdressRowId'; protected static string $primaryField = 'AdressRowId';
} }

View File

@ -32,7 +32,7 @@ final class GSDArticleMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'row_id' => ['name' => 'row_id', 'type' => 'int', 'internal' => 'id'], 'row_id' => ['name' => 'row_id', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
@ -48,7 +48,7 @@ final class GSDArticleMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'Artikel'; protected static string $table = 'Artikel';
/** /**
* Created at. * Created at.
@ -56,7 +56,7 @@ final class GSDArticleMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $createdAt = 'row_create_time'; protected static string $createdAt = 'row_create_time';
/** /**
* Primary field name. * Primary field name.
@ -64,5 +64,5 @@ final class GSDArticleMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'row_id'; protected static string $primaryField = 'row_id';
} }

View File

@ -44,7 +44,7 @@ final class GSDCostCenter implements \JsonSerializable
/** /**
* Created. * Created.
* *
* @var \DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected $createdAt = null; protected $createdAt = null;

View File

@ -33,7 +33,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'], 'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
@ -47,7 +47,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'FiKostenstellen'; protected static string $table = 'FiKostenstellen';
/** /**
* Created at. * Created at.
@ -55,7 +55,7 @@ final class GSDCostCenterMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $createdAt = 'row_create_time'; protected static string $createdAt = 'row_create_time';
/** /**
* Primary field name. * Primary field name.
@ -63,5 +63,5 @@ final class GSDCostCenterMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'ROW_ID'; protected static string $primaryField = 'ROW_ID';
} }

View File

@ -44,7 +44,7 @@ final class GSDCostObject implements \JsonSerializable
/** /**
* Created. * Created.
* *
* @var \DateTime * @var null|\DateTime
* @since 1.0.0 * @since 1.0.0
*/ */
protected $createdAt = null; protected $createdAt = null;

View File

@ -33,7 +33,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'], 'ROW_ID' => ['name' => 'ROW_ID', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
@ -47,7 +47,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'FiKostentraeger'; protected static string $table = 'FiKostentraeger';
/** /**
* Created at. * Created at.
@ -55,7 +55,7 @@ final class GSDCostObjectMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $createdAt = 'row_create_time'; protected static string $createdAt = 'row_create_time';
/** /**
* Primary field name. * Primary field name.
@ -63,5 +63,5 @@ final class GSDCostObjectMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'ROW_ID'; protected static string $primaryField = 'ROW_ID';
} }

View File

@ -32,14 +32,14 @@ final class GSDCustomerMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'row_id' => ['name' => 'row_id', 'type' => 'int', 'internal' => 'id'], 'row_id' => ['name' => 'row_id', 'type' => 'int', 'internal' => 'id'],
'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'], 'row_create_time' => ['name' => 'row_create_time', 'type' => 'DateTime', 'internal' => 'createdAt'],
'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'], 'row_create_user' => ['name' => 'row_create_user', 'type' => 'int', 'internal' => 'createdBy'],
'Kundennummer' => ['name' => 'Kundennummer', 'type' => 'string', 'internal' => 'number'], 'Kundennummer' => ['name' => 'Kundennummer', 'type' => 'string', 'internal' => 'number'],
]; ];
protected static $ownsOne = [ protected static array $ownsOne = [
'mainAddress' => [ 'mainAddress' => [
'mapper' => GSDAddressMapper::class, 'mapper' => GSDAddressMapper::class,
'src' => 'AddressId', 'src' => 'AddressId',
@ -52,7 +52,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'Kunden'; protected static string $table = 'Kunden';
/** /**
* Created at. * Created at.
@ -60,7 +60,7 @@ final class GSDCustomerMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $createdAt = 'row_create_time'; protected static string $createdAt = 'row_create_time';
/** /**
* Primary field name. * Primary field name.
@ -68,5 +68,5 @@ final class GSDCustomerMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'row_id'; protected static string $primaryField = 'row_id';
} }

View File

@ -33,7 +33,7 @@ final class InterfaceManagerMapper extends DataMapperAbstract
* @var array<string, array<string, bool|string>> * @var array<string, array<string, bool|string>>
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $columns = [ protected static array $columns = [
'exchange_id' => ['name' => 'exchange_id', 'type' => 'int', 'internal' => 'id'], 'exchange_id' => ['name' => 'exchange_id', 'type' => 'int', 'internal' => 'id'],
'exchange_title' => ['name' => 'exchange_title', 'type' => 'string', 'internal' => 'info/name'], 'exchange_title' => ['name' => 'exchange_title', 'type' => 'string', 'internal' => 'info/name'],
'exchange_path' => ['name' => 'exchange_path', 'type' => 'string', 'internal' => 'info/path'], 'exchange_path' => ['name' => 'exchange_path', 'type' => 'string', 'internal' => 'info/path'],
@ -49,7 +49,7 @@ final class InterfaceManagerMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'exchange'; protected static string $table = 'exchange';
/** /**
* Primary field name. * Primary field name.
@ -57,5 +57,5 @@ final class InterfaceManagerMapper extends DataMapperAbstract
* @var string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'exchange_id'; protected static string $primaryField = 'exchange_id';
} }