From 99b84091748853ba1e8982f76e16ff804e6ccf1d Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 25 May 2023 07:52:16 +0000 Subject: [PATCH] Auto docblock fixes --- Controller/Controller.php | 4 +- Models/AccountRelation.php | 68 +++++++++++++------------------ Models/AccountRelationType.php | 0 Models/AttributeValueType.php | 0 Models/NullPromotionAttribute.php | 0 5 files changed, 30 insertions(+), 42 deletions(-) mode change 100755 => 100644 Controller/Controller.php mode change 100755 => 100644 Models/AccountRelation.php mode change 100755 => 100644 Models/AccountRelationType.php mode change 100755 => 100644 Models/AttributeValueType.php mode change 100755 => 100644 Models/NullPromotionAttribute.php diff --git a/Controller/Controller.php b/Controller/Controller.php old mode 100755 new mode 100644 index 079b706..af167c1 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -59,7 +59,7 @@ class Controller extends ModuleAbstract public const ID = 1001900000; /** - * Providing. + * List of modules this module provides for. * * @var string[] * @since 1.0.0 @@ -67,7 +67,7 @@ class Controller extends ModuleAbstract protected static array $providing = []; /** - * Dependencies. + * List of modules this module depends on. * * @var string[] * @since 1.0.0 diff --git a/Models/AccountRelation.php b/Models/AccountRelation.php old mode 100755 new mode 100644 index 5492d4b..ae8610e --- a/Models/AccountRelation.php +++ b/Models/AccountRelation.php @@ -18,7 +18,7 @@ use Modules\Admin\Models\Account; use Modules\Admin\Models\NullAccount; /** - * Promotion class. + * AccountRelation class. * * @package Modules\Marketing\Models * @license OMS License 2.0 @@ -35,49 +35,37 @@ class AccountRelation */ public int $id = 0; - /** - * Promotion - * - * @var int - * @since 1.0.0 - */ - public int $promotion = 0; + /** + * The ID of the promotion associated with this account relation. + * + * @var int + * @since 1.0.0 + */ + public int $promotion = 0; - /** - * Account - * - * @var Account - * @since 1.0.0 - */ - public Account $account; + /** + * The account associated with this account relation. + * + * @var Account + * @since 1.0.0 + */ + public Account $account; - /** - * Account relation type - * - * @var int - * @since 1.0.0 - */ - public int $type = AccountRelationType::CUSTOMER; + /** + * The type of this account relation. + * + * @var int + * @since 1.0.0 + */ + public int $type = AccountRelationType::CUSTOMER; - /** + /** * Constructor. * * @since 1.0.0 - */ - public function __construct() - { - $this->account = new NullAccount(); - } - - /** - * Get id. - * - * @return int Model id - * - * @since 1.0.0 - */ - public function getId() : int - { - return $this->id; - } + */ + public function __construct() + { + $this->account = new NullAccount(); + } } diff --git a/Models/AccountRelationType.php b/Models/AccountRelationType.php old mode 100755 new mode 100644 diff --git a/Models/AttributeValueType.php b/Models/AttributeValueType.php old mode 100755 new mode 100644 diff --git a/Models/NullPromotionAttribute.php b/Models/NullPromotionAttribute.php old mode 100755 new mode 100644