diff --git a/Controller/Controller.php b/Controller/Controller.php index b95020a..706b0ac 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -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 = []; } diff --git a/Models/Promotion.php b/Models/Promotion.php index becc02d..d710176 100644 --- a/Models/Promotion.php +++ b/Models/Promotion.php @@ -55,7 +55,7 @@ class Promotion /** * Created at. * - * @var \DateTime + * @var null|\DateTime * @since 1.0.0 */ private $createdAt = null; diff --git a/Models/PromotionMapper.php b/Models/PromotionMapper.php index 6fc2173..5242ab3 100644 --- a/Models/PromotionMapper.php +++ b/Models/PromotionMapper.php @@ -36,7 +36,7 @@ final class PromotionMapper extends DataMapperAbstract * @var array> * @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> * @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> * @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'; }