mirror of
https://github.com/Karaka-Management/oms-ItemManagement.git
synced 2026-01-23 00:58:42 +00:00
Implement php 7.4 type hints
This commit is contained in:
parent
503191f5d6
commit
7cbc577c06
|
|
@ -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 = [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ final class ItemMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'itemmgmt_item_id' => ['name' => 'itemmgmt_item_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'itemmgmt_item_no' => ['name' => 'itemmgmt_item_no', 'type' => 'string', 'internal' => 'number'],
|
||||
'itemmgmt_item_segment' => ['name' => 'itemmgmt_item_segment', 'type' => 'int', 'internal' => 'segment'],
|
||||
|
|
@ -38,7 +38,7 @@ final class ItemMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'itemmgmt_item';
|
||||
protected static string $table = 'itemmgmt_item';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -46,13 +46,13 @@ final class ItemMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'itemmgmt_item_id'; /**
|
||||
protected static string $primaryField = 'itemmgmt_item_id'; /**
|
||||
* Has many relation.
|
||||
*
|
||||
* @var array<string, array<string, null|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $hasMany = [
|
||||
protected static array $hasMany = [
|
||||
'media' => [
|
||||
'mapper' => MediaMapper::class, /* mapper of the related object */
|
||||
'table' => 'itemmgmt_item_media', /* table of the related object, null if no relation table is used (many->1) */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user