inspection fixes

This commit is contained in:
Dennis Eichhorn 2020-07-31 18:13:52 +02:00
parent 1b40eee561
commit 2da0ce891a
4 changed files with 558 additions and 2 deletions

View File

@ -24,80 +24,229 @@ namespace Modules\Exchange\Interfaces\GSD\Model;
*/ */
final class GSDAddress final class GSDAddress
{ {
/**
* ID.
*
* @var int
* @sicne 1.0.0
*/
protected int $id = 0; protected int $id = 0;
/**
* Name1.
*
* @var string
* @sicne 1.0.0
*/
private string $name1 = ''; private string $name1 = '';
/**
* Name2.
*
* @var string
* @sicne 1.0.0
*/
private string $name2 = ''; private string $name2 = '';
/**
* Name3.
*
* @var string
* @sicne 1.0.0
*/
private string $name3 = ''; private string $name3 = '';
/**
* City.
*
* @var string
* @sicne 1.0.0
*/
private string $city = ''; private string $city = '';
/**
* Country.
*
* @var string
* @sicne 1.0.0
*/
private string $country = ''; private string $country = '';
/**
* Postal code.
*
* @var string
* @sicne 1.0.0
*/
private string $zip = ''; private string $zip = '';
/**
* street.
*
* @var string
* @sicne 1.0.0
*/
private string $street = ''; private string $street = '';
/**
* Phone.
*
* @var string
* @sicne 1.0.0
*/
private string $phone = ''; private string $phone = '';
/**
* FAX.
*
* @var string
* @sicne 1.0.0
*/
private string $fax = ''; private string $fax = '';
/**
* Email.
*
* @var string
* @sicne 1.0.0
*/
private string $email = ''; private string $email = '';
/**
* Website.
*
* @var string
* @sicne 1.0.0
*/
private string $website = ''; private string $website = '';
/**
* Get name1
*
* @return string
*
* @since 1.0.0
*/
public function getName1() : string public function getName1() : string
{ {
return $this->name1; return $this->name1;
} }
/**
* Get name1
*
* @return string
*
* @since 1.0.0
*/
public function getName2() : string public function getName2() : string
{ {
return $this->name2; return $this->name2;
} }
/**
* Get name3
*
* @return string
*
* @since 1.0.0
*/
public function getName3() : string public function getName3() : string
{ {
return $this->name3; return $this->name3;
} }
/**
* Get city
*
* @return string
*
* @since 1.0.0
*/
public function getCity() : string public function getCity() : string
{ {
return $this->city; return $this->city;
} }
/**
* Get postal/sip
*
* @return string
*
* @since 1.0.0
*/
public function getZip() : string public function getZip() : string
{ {
return $this->zip; return $this->zip;
} }
/**
* Get street
*
* @return string
*
* @since 1.0.0
*/
public function getStreet() : string public function getStreet() : string
{ {
return $this->street; return $this->street;
} }
/**
* Get country
*
* @return string
*
* @since 1.0.0
*/
public function getCountry() : string public function getCountry() : string
{ {
return $this->country; return $this->country;
} }
/**
* Get phone
*
* @return string
*
* @since 1.0.0
*/
public function getPhone() : string public function getPhone() : string
{ {
return $this->phone; return $this->phone;
} }
/**
* Get email
*
* @return string
*
* @since 1.0.0
*/
public function getEmail() : string public function getEmail() : string
{ {
return $this->email; return $this->email;
} }
/**
* Get fax
*
* @return string
*
* @since 1.0.0
*/
public function getFax() : string public function getFax() : string
{ {
return $this->fax; return $this->fax;
} }
/**
* Get website
*
* @return string
*
* @since 1.0.0
*/
public function getWebsite() : string public function getWebsite() : string
{ {
return $this->website; return $this->website;

View File

@ -24,87 +24,247 @@ namespace Modules\Exchange\Interfaces\GSD\Model;
*/ */
final class GSDArticle final class GSDArticle
{ {
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0; protected int $id = 0;
/**
* Create at.
*
* @var \DateTime
* @since 1.0.0
*/
private \DateTime $createdAt; private \DateTime $createdAt;
/**
* Article number.
*
* @var string
* @since 1.0.0
*/
private string $number = ''; private string $number = '';
/**
* Article information
*
* @var string
* @since 1.0.0
*/
private string $info = ''; private string $info = '';
/**
* Name1.
*
* @var string
* @since 1.0.0
*/
private string $name1 = ''; private string $name1 = '';
/**
* Name2
*
* @var string
* @since 1.0.0
*/
private string $name2 = ''; private string $name2 = '';
/**
* English name1.
*
* @var string
* @since 1.0.0
*/
private string $name1Eng = ''; private string $name1Eng = '';
/**
* English name2
*
* @var string
* @since 1.0.0
*/
private string $name2Eng = ''; private string $name2Eng = '';
/**
* Activity status
*
* @var int
* @since 1.0.0
*/
private int $status = 0; private int $status = 0;
/**
* Lot type (can also be none)
*
* @var int
* @since 1.0.0
*/
private int $lotType = 0; private int $lotType = 0;
/**
* Weight
*
* @var float
* @since 1.0.0
*/
private float $weight = 0.0; private float $weight = 0.0;
/**
* Lead time in days
*
* @var int
* @since 1.0.0
*/
private int $leadTime = 0; private int $leadTime = 0;
/**
* EU item group
*
* @var string
* @since 1.0.0
*/
private string $EUitemgroup = ''; private string $EUitemgroup = '';
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct() public function __construct()
{ {
$this->createdAt = new \DateTime('now'); $this->createdAt = new \DateTime('now');
} }
/**
* Get article number
*
* @return string
*
* @since 1.0.0
*/
public function getNumber() : string public function getNumber() : string
{ {
return $this->number; return $this->number;
} }
/**
* Get article information text
*
* @return string
*
* @since 1.0.0
*/
public function getInfo() : string public function getInfo() : string
{ {
return $this->info; return $this->info;
} }
/**
* Get name1
*
* @return string
*
* @since 1.0.0
*/
public function getName1() : string public function getName1() : string
{ {
return $this->name1; return $this->name1;
} }
/**
* Get name2
*
* @return string
*
* @since 1.0.0
*/
public function getName2() : string public function getName2() : string
{ {
return $this->name2; return $this->name2;
} }
/**
* Get englisch name1
*
* @return string
*
* @since 1.0.0
*/
public function getName1Eng() : string public function getName1Eng() : string
{ {
return $this->name1Eng; return $this->name1Eng;
} }
/**
* Get englisch name2
*
* @return string
*
* @since 1.0.0
*/
public function getName2Eng() : string public function getName2Eng() : string
{ {
return $this->name2Eng; return $this->name2Eng;
} }
/**
* Get status
*
* @return int
*
* @since 1.0.0
*/
public function getStatus() : int public function getStatus() : int
{ {
return $this->status; return $this->status;
} }
/**
* Get lot type
*
* @return int
*
* @since 1.0.0
*/
public function getLotType() : int public function getLotType() : int
{ {
return $this->lotType; return $this->lotType;
} }
/**
* Get weight
*
* @return float
*
* @since 1.0.0
*/
public function getWeight() : float public function getWeight() : float
{ {
return $this->weight; return $this->weight;
} }
/**
* Get lead time (in days)
*
* @return int
*
* @since 1.0.0
*/
public function getLeadTime() : int public function getLeadTime() : int
{ {
return $this->leadTime; return $this->leadTime;
} }
/**
* Get EU item group
*
* @return string
*
* @since 1.0.0
*/
public function getEUItemGroup() : string public function getEUItemGroup() : string
{ {
return $this->EUitemgroup; return $this->EUitemgroup;

View File

@ -24,6 +24,12 @@ namespace Modules\Exchange\Interfaces\GSD\Model;
*/ */
final class GSDCustomer final class GSDCustomer
{ {
/**
* ID.
*
* @var int
* @since 1.0.0
*/
private int $id = 0; private int $id = 0;
/** /**
@ -42,77 +48,214 @@ final class GSDCustomer
*/ */
protected \DateTime $createdAt; protected \DateTime $createdAt;
/**
* Customer number
*
* @var string
* @since 1.0.0
*/
private string $number = ''; private string $number = '';
/**
* Info text
*
* @var string
* @since 1.0.0
*/
private string $info = ''; private string $info = '';
/**
* Credit limit
*
* @var float
* @since 1.0.0
*/
private float $creditlimit = 0.0; private float $creditlimit = 0.0;
/**
* EGUStId
*
* @var string
* @since 1.0.0
*/
private string $egustid = ''; private string $egustid = '';
/**
* VAT id
*
* @var string
* @since 1.0.0
*/
private string $taxid = ''; private string $taxid = '';
/**
* BICC
*
* @var string
* @since 1.0.0
*/
private string $bic = ''; private string $bic = '';
/**
* IBAN
*
* @var string
* @sicne 1.0.0
*/
private string $iban = ''; private string $iban = '';
/**
* Address
*
* @var GSDAddress
* @since 1.0.0
*/
private GSDAddress $addr; private GSDAddress $addr;
/**
* Delivery status.
*
* Can invoices get created
*
* @var int
* @since 1.0.0
*/
private int $deliveryStatus = 0; private int $deliveryStatus = 0;
/**
* Sales rep id
*
* @var int
* @since 1.0.0
*/
private int $salesRep = 0; private int $salesRep = 0;
/**
* Construct.
*
* @since 1.0.0
*/
public function __construct() public function __construct()
{ {
$this->addr = new GSDAddress(); $this->addr = new GSDAddress();
$this->createdAt = new \DateTime('now'); $this->createdAt = new \DateTime('now');
} }
/**
* Get customer number
*
* @return string
*
* @since 1.0.0
*/
public function getNumber() : string public function getNumber() : string
{ {
return $this->number; return $this->number;
} }
/**
* Get customer information text
*
* @return string
*
* @since 1.0.0
*/
public function getInfo() : string public function getInfo() : string
{ {
return $this->info; return $this->info;
} }
/**
* Get credit limit
*
* @return float
*
* @since 1.0.0
*/
public function getCreditLimit() : float public function getCreditLimit() : float
{ {
return $this->creditlimit; return $this->creditlimit;
} }
/**
* Get EGUStId
*
* @return string
*
* @since 1.0.0
*/
public function getEGUstId() : string public function getEGUstId() : string
{ {
return $this->egustid; return $this->egustid;
} }
/**
* Get VAT Id
*
* @return string
*
* @since 1.0.0
*/
public function getTaxId() : string public function getTaxId() : string
{ {
return $this->taxid; return $this->taxid;
} }
/**
* Get BIC
*
* @return string
*
* @since 1.0.0
*/
public function getBIC() : string public function getBIC() : string
{ {
return $this->bic; return $this->bic;
} }
/**
* Get IBAN
*
* @return string
*
* @since 1.0.0
*/
public function getIban() : string public function getIban() : string
{ {
return $this->iban; return $this->iban;
} }
/**
* Get main address
*
* @return GSDAddress
*
* @since 1.0.0
*/
public function getAddress() : GSDAddress public function getAddress() : GSDAddress
{ {
return $this->addr; return $this->addr;
} }
/**
* Get deivery status
*
* @return int
*
* @since 1.0.0
*/
public function getDeliveryStatus() : int public function getDeliveryStatus() : int
{ {
return $this->deliveryStatus; return $this->deliveryStatus;
} }
/**
* Get saes rep
*
* @return int
*
* @since 1.0.0
*/
public function getSalesRep() : int public function getSalesRep() : int
{ {
return $this->salesRep; return $this->salesRep;

View File

@ -24,6 +24,12 @@ namespace Modules\Exchange\Interfaces\GSD\Model;
*/ */
final class GSDSupplier final class GSDSupplier
{ {
/**
* ID.
*
* @var int
* @since 1.0.0
*/
private int $id = 0; private int $id = 0;
/** /**
@ -42,56 +48,154 @@ final class GSDSupplier
*/ */
protected \DateTime $createdAt; protected \DateTime $createdAt;
/**
* Customer number
*
* @var string
* @since 1.0.0
*/
private string $number = ''; private string $number = '';
/**
* Info text
*
* @var string
* @since 1.0.0
*/
private string $info = ''; private string $info = '';
/**
* VAT id
*
* @var string
* @since 1.0.0
*/
private string $taxid = ''; private string $taxid = '';
/**
* BICC
*
* @var string
* @since 1.0.0
*/
private string $bic = ''; private string $bic = '';
/**
* IBAN
*
* @var string
* @sicne 1.0.0
*/
private string $iban = ''; private string $iban = '';
/**
* Address
*
* @var GSDAddress
* @since 1.0.0
*/
private GSDAddress $addr; private GSDAddress $addr;
/**
* Delivery status.
*
* Can invoices get created
*
* @var int
* @since 1.0.0
*/
private int $deliveryStatus = 0; private int $deliveryStatus = 0;
/**
* Construct.
*
* @since 1.0.0
*/
public function __construct() public function __construct()
{ {
$this->addr = new GSDAddress(); $this->addr = new GSDAddress();
$this->createdAt = new \DateTime('now'); $this->createdAt = new \DateTime('now');
} }
/**
* Get supplier number
*
* @return string
*
* @since 1.0.0
*/
public function getNumber() : string public function getNumber() : string
{ {
return $this->number; return $this->number;
} }
/**
* Get information text
*
* @return string
*
* @since 1.0.0
*/
public function getInfo() : string public function getInfo() : string
{ {
return $this->info; return $this->info;
} }
/**
* Get VAT Id
*
* @return string
*
* @since 1.0.0
*/
public function getTaxId() : string public function getTaxId() : string
{ {
return $this->taxid; return $this->taxid;
} }
/**
* Get BIC
*
* @return string
*
* @since 1.0.0
*/
public function getBIC() : string public function getBIC() : string
{ {
return $this->bic; return $this->bic;
} }
/**
* Get IBAN
*
* @return string
*
* @since 1.0.0
*/
public function getIban() : string public function getIban() : string
{ {
return $this->iban; return $this->iban;
} }
/**
* Get main address
*
* @return GSDAddress
*
* @since 1.0.0
*/
public function getAddress() : GSDAddress public function getAddress() : GSDAddress
{ {
return $this->addr; return $this->addr;
} }
/**
* Get deivery status
*
* @return int
*
* @since 1.0.0
*/
public function getDeliveryStatus() : int public function getDeliveryStatus() : int
{ {
return $this->deliveryStatus; return $this->deliveryStatus;