diff --git a/Models/Supplier.php b/Models/Supplier.php index 741061a..4666498 100644 --- a/Models/Supplier.php +++ b/Models/Supplier.php @@ -27,15 +27,21 @@ use Modules\Profile\Models\Profile; */ class Supplier { - private $id = 0; + /** + * ID. + * + * @var int + * @since 1.0.0 + */ + protected int $id = 0; private $number = ''; private $numberReverse = ''; - private $status = 0; + private int $status = 0; - private $type = 0; + private int $type = 0; private $taxId = 0; @@ -51,12 +57,24 @@ class Supplier private $address = []; + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() { $this->createdAt = new \DateTime('now'); $this->profile = new Profile(); } + /** + * Get id. + * + * @return int Model id + * + * @since 1.0.0 + */ public function getId() : int { return $this->id; @@ -126,6 +144,13 @@ class Supplier $this->info = $info; } + /** + * Get created at date time + * + * @return \DateTime + * + * @since 1.0.0 + */ public function getCreatedAt() : \DateTime { return $this->createdAt; diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 8f2b472..4102031 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -1,4 +1,4 @@ - [ 'Create' => 'Create', 'List' => 'List', diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index 5803e7d..9e0aa2c 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -1,4 +1,4 @@ - [ 'Accounting' => 'Accounting', 'Address' => 'Address', diff --git a/Theme/Backend/supplier-create.tpl.php b/Theme/Backend/supplier-create.tpl.php index f5d6de3..093fea5 100644 --- a/Theme/Backend/supplier-create.tpl.php +++ b/Theme/Backend/supplier-create.tpl.php @@ -1,4 +1,4 @@ -app, $this->request, $this->response); $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); diff --git a/Theme/Backend/supplier-single.tpl.php b/Theme/Backend/supplier-single.tpl.php index ea4d8cb..225c79a 100644 --- a/Theme/Backend/supplier-single.tpl.php +++ b/Theme/Backend/supplier-single.tpl.php @@ -1,4 +1,4 @@ -