mirror of
https://github.com/Karaka-Management/oms-Marketing.git
synced 2026-02-07 22:28:39 +00:00
Implement php 7.4 type hints
This commit is contained in:
parent
a50f15c78d
commit
c04a1d3719
|
|
@ -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 = [];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -55,7 +55,7 @@ class Promotion
|
|||
/**
|
||||
* Created at.
|
||||
*
|
||||
* @var \DateTime
|
||||
* @var null|\DateTime
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $createdAt = null;
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ final class PromotionMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, bool|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $columns = [
|
||||
protected static array $columns = [
|
||||
'marketing_promotion_id' => ['name' => 'marketing_promotion_id', 'type' => 'int', 'internal' => 'id'],
|
||||
'marketing_promotion_name' => ['name' => 'marketing_promotion_name', 'type' => 'string', 'internal' => 'name'],
|
||||
'marketing_promotion_description' => ['name' => 'marketing_promotion_description', 'type' => 'string', 'internal' => 'description'],
|
||||
|
|
@ -58,7 +58,7 @@ final class PromotionMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, null|string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $hasMany = [
|
||||
protected static array $hasMany = [
|
||||
'tasks' => [
|
||||
'mapper' => TaskMapper::class,
|
||||
'table' => 'marketing_promotion_task_relation',
|
||||
|
|
@ -79,7 +79,7 @@ final class PromotionMapper extends DataMapperAbstract
|
|||
* @var array<string, array<string, string>>
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $ownsOne = [
|
||||
protected static array $ownsOne = [
|
||||
'calendar' => [
|
||||
'mapper' => CalendarMapper::class,
|
||||
'src' => 'marketing_promotion_calendar',
|
||||
|
|
@ -92,7 +92,7 @@ final class PromotionMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $table = 'marketing_promotion';
|
||||
protected static string $table = 'marketing_promotion';
|
||||
|
||||
/**
|
||||
* Created at.
|
||||
|
|
@ -100,7 +100,7 @@ final class PromotionMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $createdAt = 'marketing_promotion_created_at';
|
||||
protected static string $createdAt = 'marketing_promotion_created_at';
|
||||
|
||||
/**
|
||||
* Primary field name.
|
||||
|
|
@ -108,5 +108,5 @@ final class PromotionMapper extends DataMapperAbstract
|
|||
* @var string
|
||||
* @since 1.0.0
|
||||
*/
|
||||
protected static $primaryField = 'marketing_promotion_id';
|
||||
protected static string $primaryField = 'marketing_promotion_id';
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user