diff --git a/Models/Promotion.php b/Models/Promotion.php index bfa572d..13f8f69 100644 --- a/Models/Promotion.php +++ b/Models/Promotion.php @@ -28,15 +28,31 @@ use phpOMS\Localization\Money; */ class Promotion { - private $id = 0; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; private $start = null; private $end = null; - - private $name = ''; - - private $description = ''; + /** + * Name. + * + * @var string + * @since 1.0.0 + */ + private string $name = ''; + /** + * Description. + * + * @var string + * @since 1.0.0 + */ + private string $description = ''; private $calendar = null; @@ -86,6 +102,13 @@ class Promotion $this->setName($name); } + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; @@ -181,22 +204,54 @@ class Promotion return $this->calendar; } + /** + * Get name + * + * @return string + * + * @since 1.0.0 + */ public function getName() : string { return $this->name; } + /** + * Set name + * + * @param string $name Name + * + * @return void + * + * @since 1.0.0 + */ public function setName(string $name) : void { $this->name = $name; $this->calendar->setName($name); } + /** + * Get description + * + * @return string + * + * @since 1.0.0 + */ public function getDescription() : string { return $this->description; } + /** + * Set description + * + * @param string $description Description + * + * @return void + * + * @since 1.0.0 + */ public function setDescription(string $description) : void { $this->description = $description; diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 81fc01c..68e4658 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -1,4 +1,4 @@ - [ 'Analysis' => 'Analysis', 'Create' => 'Create', diff --git a/Theme/Backend/Lang/api.en.lang.php b/Theme/Backend/Lang/api.en.lang.php index 05f2dbb..0f59d5d 100644 --- a/Theme/Backend/Lang/api.en.lang.php +++ b/Theme/Backend/Lang/api.en.lang.php @@ -1,4 +1,4 @@ - [ 'Actual' => 'Actual', 'Budget' => 'Budget', diff --git a/Theme/Backend/event-create.tpl.php b/Theme/Backend/event-create.tpl.php index 284cf1c..961d546 100644 --- a/Theme/Backend/event-create.tpl.php +++ b/Theme/Backend/event-create.tpl.php @@ -1,4 +1,4 @@ -app, $this->request, $this->response); $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); diff --git a/Theme/Backend/promotion-create.tpl.php b/Theme/Backend/promotion-create.tpl.php index 4bf7bb4..7441082 100644 --- a/Theme/Backend/promotion-create.tpl.php +++ b/Theme/Backend/promotion-create.tpl.php @@ -1,4 +1,4 @@ -app, $this->request, $this->response); $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); diff --git a/Theme/Backend/promotion-profile.tpl.php b/Theme/Backend/promotion-profile.tpl.php index 430bd1d..1d36d6b 100644 --- a/Theme/Backend/promotion-profile.tpl.php +++ b/Theme/Backend/promotion-profile.tpl.php @@ -1,4 +1,4 @@ -getData('promotion'); $tasks = $promotion->getTasks();