From 2da0ce891a4e3c8161f6255a590258c497a22338 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Fri, 31 Jul 2020 18:13:52 +0200 Subject: [PATCH] inspection fixes --- Interfaces/GSD/Model/GSDAddress.php | 149 +++++++++++++++++++++++++ Interfaces/GSD/Model/GSDArticle.php | 160 +++++++++++++++++++++++++++ Interfaces/GSD/Model/GSDCustomer.php | 145 +++++++++++++++++++++++- Interfaces/GSD/Model/GSDSupplier.php | 106 +++++++++++++++++- 4 files changed, 558 insertions(+), 2 deletions(-) diff --git a/Interfaces/GSD/Model/GSDAddress.php b/Interfaces/GSD/Model/GSDAddress.php index baa1349..4298839 100755 --- a/Interfaces/GSD/Model/GSDAddress.php +++ b/Interfaces/GSD/Model/GSDAddress.php @@ -24,80 +24,229 @@ namespace Modules\Exchange\Interfaces\GSD\Model; */ final class GSDAddress { + /** + * ID. + * + * @var int + * @sicne 1.0.0 + */ protected int $id = 0; + /** + * Name1. + * + * @var string + * @sicne 1.0.0 + */ private string $name1 = ''; + /** + * Name2. + * + * @var string + * @sicne 1.0.0 + */ private string $name2 = ''; + /** + * Name3. + * + * @var string + * @sicne 1.0.0 + */ private string $name3 = ''; + /** + * City. + * + * @var string + * @sicne 1.0.0 + */ private string $city = ''; + /** + * Country. + * + * @var string + * @sicne 1.0.0 + */ private string $country = ''; + /** + * Postal code. + * + * @var string + * @sicne 1.0.0 + */ private string $zip = ''; + /** + * street. + * + * @var string + * @sicne 1.0.0 + */ private string $street = ''; + /** + * Phone. + * + * @var string + * @sicne 1.0.0 + */ private string $phone = ''; + /** + * FAX. + * + * @var string + * @sicne 1.0.0 + */ private string $fax = ''; + /** + * Email. + * + * @var string + * @sicne 1.0.0 + */ private string $email = ''; + /** + * Website. + * + * @var string + * @sicne 1.0.0 + */ private string $website = ''; + /** + * Get name1 + * + * @return string + * + * @since 1.0.0 + */ public function getName1() : string { return $this->name1; } + /** + * Get name1 + * + * @return string + * + * @since 1.0.0 + */ public function getName2() : string { return $this->name2; } + /** + * Get name3 + * + * @return string + * + * @since 1.0.0 + */ public function getName3() : string { return $this->name3; } + /** + * Get city + * + * @return string + * + * @since 1.0.0 + */ public function getCity() : string { return $this->city; } + /** + * Get postal/sip + * + * @return string + * + * @since 1.0.0 + */ public function getZip() : string { return $this->zip; } + /** + * Get street + * + * @return string + * + * @since 1.0.0 + */ public function getStreet() : string { return $this->street; } + /** + * Get country + * + * @return string + * + * @since 1.0.0 + */ public function getCountry() : string { return $this->country; } + /** + * Get phone + * + * @return string + * + * @since 1.0.0 + */ public function getPhone() : string { return $this->phone; } + /** + * Get email + * + * @return string + * + * @since 1.0.0 + */ public function getEmail() : string { return $this->email; } + /** + * Get fax + * + * @return string + * + * @since 1.0.0 + */ public function getFax() : string { return $this->fax; } + /** + * Get website + * + * @return string + * + * @since 1.0.0 + */ public function getWebsite() : string { return $this->website; diff --git a/Interfaces/GSD/Model/GSDArticle.php b/Interfaces/GSD/Model/GSDArticle.php index ebf9932..95da32a 100755 --- a/Interfaces/GSD/Model/GSDArticle.php +++ b/Interfaces/GSD/Model/GSDArticle.php @@ -24,87 +24,247 @@ namespace Modules\Exchange\Interfaces\GSD\Model; */ final class GSDArticle { + /** + * ID. + * + * @var int + * @since 1.0.0 + */ protected int $id = 0; + /** + * Create at. + * + * @var \DateTime + * @since 1.0.0 + */ private \DateTime $createdAt; + /** + * Article number. + * + * @var string + * @since 1.0.0 + */ private string $number = ''; + /** + * Article information + * + * @var string + * @since 1.0.0 + */ private string $info = ''; + /** + * Name1. + * + * @var string + * @since 1.0.0 + */ private string $name1 = ''; + /** + * Name2 + * + * @var string + * @since 1.0.0 + */ private string $name2 = ''; + /** + * English name1. + * + * @var string + * @since 1.0.0 + */ private string $name1Eng = ''; + /** + * English name2 + * + * @var string + * @since 1.0.0 + */ private string $name2Eng = ''; + /** + * Activity status + * + * @var int + * @since 1.0.0 + */ private int $status = 0; + /** + * Lot type (can also be none) + * + * @var int + * @since 1.0.0 + */ private int $lotType = 0; + /** + * Weight + * + * @var float + * @since 1.0.0 + */ private float $weight = 0.0; + /** + * Lead time in days + * + * @var int + * @since 1.0.0 + */ private int $leadTime = 0; + /** + * EU item group + * + * @var string + * @since 1.0.0 + */ private string $EUitemgroup = ''; + /** + * Constructor. + * + * @since 1.0.0 + */ public function __construct() { $this->createdAt = new \DateTime('now'); } + /** + * Get article number + * + * @return string + * + * @since 1.0.0 + */ public function getNumber() : string { return $this->number; } + /** + * Get article information text + * + * @return string + * + * @since 1.0.0 + */ public function getInfo() : string { return $this->info; } + /** + * Get name1 + * + * @return string + * + * @since 1.0.0 + */ public function getName1() : string { return $this->name1; } + /** + * Get name2 + * + * @return string + * + * @since 1.0.0 + */ public function getName2() : string { return $this->name2; } + /** + * Get englisch name1 + * + * @return string + * + * @since 1.0.0 + */ public function getName1Eng() : string { return $this->name1Eng; } + /** + * Get englisch name2 + * + * @return string + * + * @since 1.0.0 + */ public function getName2Eng() : string { return $this->name2Eng; } + /** + * Get status + * + * @return int + * + * @since 1.0.0 + */ public function getStatus() : int { return $this->status; } + /** + * Get lot type + * + * @return int + * + * @since 1.0.0 + */ public function getLotType() : int { return $this->lotType; } + /** + * Get weight + * + * @return float + * + * @since 1.0.0 + */ public function getWeight() : float { return $this->weight; } + /** + * Get lead time (in days) + * + * @return int + * + * @since 1.0.0 + */ public function getLeadTime() : int { return $this->leadTime; } + /** + * Get EU item group + * + * @return string + * + * @since 1.0.0 + */ public function getEUItemGroup() : string { return $this->EUitemgroup; diff --git a/Interfaces/GSD/Model/GSDCustomer.php b/Interfaces/GSD/Model/GSDCustomer.php index a51419c..8b13315 100755 --- a/Interfaces/GSD/Model/GSDCustomer.php +++ b/Interfaces/GSD/Model/GSDCustomer.php @@ -24,6 +24,12 @@ namespace Modules\Exchange\Interfaces\GSD\Model; */ final class GSDCustomer { + /** + * ID. + * + * @var int + * @since 1.0.0 + */ private int $id = 0; /** @@ -42,77 +48,214 @@ final class GSDCustomer */ protected \DateTime $createdAt; + /** + * Customer number + * + * @var string + * @since 1.0.0 + */ private string $number = ''; + /** + * Info text + * + * @var string + * @since 1.0.0 + */ private string $info = ''; + /** + * Credit limit + * + * @var float + * @since 1.0.0 + */ private float $creditlimit = 0.0; + /** + * EGUStId + * + * @var string + * @since 1.0.0 + */ private string $egustid = ''; + /** + * VAT id + * + * @var string + * @since 1.0.0 + */ private string $taxid = ''; + /** + * BICC + * + * @var string + * @since 1.0.0 + */ private string $bic = ''; + /** + * IBAN + * + * @var string + * @sicne 1.0.0 + */ private string $iban = ''; + /** + * Address + * + * @var GSDAddress + * @since 1.0.0 + */ private GSDAddress $addr; + /** + * Delivery status. + * + * Can invoices get created + * + * @var int + * @since 1.0.0 + */ private int $deliveryStatus = 0; + /** + * Sales rep id + * + * @var int + * @since 1.0.0 + */ private int $salesRep = 0; + /** + * Construct. + * + * @since 1.0.0 + */ public function __construct() { - $this->addr = new GSDAddress(); + $this->addr = new GSDAddress(); $this->createdAt = new \DateTime('now'); } + /** + * Get customer number + * + * @return string + * + * @since 1.0.0 + */ public function getNumber() : string { return $this->number; } + /** + * Get customer information text + * + * @return string + * + * @since 1.0.0 + */ public function getInfo() : string { return $this->info; } + /** + * Get credit limit + * + * @return float + * + * @since 1.0.0 + */ public function getCreditLimit() : float { return $this->creditlimit; } + /** + * Get EGUStId + * + * @return string + * + * @since 1.0.0 + */ public function getEGUstId() : string { return $this->egustid; } + /** + * Get VAT Id + * + * @return string + * + * @since 1.0.0 + */ public function getTaxId() : string { return $this->taxid; } + /** + * Get BIC + * + * @return string + * + * @since 1.0.0 + */ public function getBIC() : string { return $this->bic; } + /** + * Get IBAN + * + * @return string + * + * @since 1.0.0 + */ public function getIban() : string { return $this->iban; } + /** + * Get main address + * + * @return GSDAddress + * + * @since 1.0.0 + */ public function getAddress() : GSDAddress { return $this->addr; } + /** + * Get deivery status + * + * @return int + * + * @since 1.0.0 + */ public function getDeliveryStatus() : int { return $this->deliveryStatus; } + /** + * Get saes rep + * + * @return int + * + * @since 1.0.0 + */ public function getSalesRep() : int { return $this->salesRep; diff --git a/Interfaces/GSD/Model/GSDSupplier.php b/Interfaces/GSD/Model/GSDSupplier.php index 1805049..0a74e45 100755 --- a/Interfaces/GSD/Model/GSDSupplier.php +++ b/Interfaces/GSD/Model/GSDSupplier.php @@ -24,6 +24,12 @@ namespace Modules\Exchange\Interfaces\GSD\Model; */ final class GSDSupplier { + /** + * ID. + * + * @var int + * @since 1.0.0 + */ private int $id = 0; /** @@ -42,56 +48,154 @@ final class GSDSupplier */ protected \DateTime $createdAt; + /** + * Customer number + * + * @var string + * @since 1.0.0 + */ private string $number = ''; + /** + * Info text + * + * @var string + * @since 1.0.0 + */ private string $info = ''; + /** + * VAT id + * + * @var string + * @since 1.0.0 + */ private string $taxid = ''; + /** + * BICC + * + * @var string + * @since 1.0.0 + */ private string $bic = ''; + /** + * IBAN + * + * @var string + * @sicne 1.0.0 + */ private string $iban = ''; + /** + * Address + * + * @var GSDAddress + * @since 1.0.0 + */ private GSDAddress $addr; + /** + * Delivery status. + * + * Can invoices get created + * + * @var int + * @since 1.0.0 + */ private int $deliveryStatus = 0; + /** + * Construct. + * + * @since 1.0.0 + */ public function __construct() { - $this->addr = new GSDAddress(); + $this->addr = new GSDAddress(); $this->createdAt = new \DateTime('now'); } + /** + * Get supplier number + * + * @return string + * + * @since 1.0.0 + */ public function getNumber() : string { return $this->number; } + /** + * Get information text + * + * @return string + * + * @since 1.0.0 + */ public function getInfo() : string { return $this->info; } + /** + * Get VAT Id + * + * @return string + * + * @since 1.0.0 + */ public function getTaxId() : string { return $this->taxid; } + /** + * Get BIC + * + * @return string + * + * @since 1.0.0 + */ public function getBIC() : string { return $this->bic; } + /** + * Get IBAN + * + * @return string + * + * @since 1.0.0 + */ public function getIban() : string { return $this->iban; } + /** + * Get main address + * + * @return GSDAddress + * + * @since 1.0.0 + */ public function getAddress() : GSDAddress { return $this->addr; } + /** + * Get deivery status + * + * @return int + * + * @since 1.0.0 + */ public function getDeliveryStatus() : int { return $this->deliveryStatus;