Skip to content

Commit

Permalink
Removed return types in models if void
Browse files Browse the repository at this point in the history
  • Loading branch information
rutgerkirkels committed Feb 22, 2018
1 parent d9b060a commit 8f9c83c
Show file tree
Hide file tree
Showing 11 changed files with 42 additions and 42 deletions.
10 changes: 5 additions & 5 deletions src/Models/AbstractAddress.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getAddress(): string
/**
* @param string $address
*/
public function setAddress(string $address): void
public function setAddress(string $address)
{
$this->address = $address;
}
Expand All @@ -67,7 +67,7 @@ public function getPostalCode(): string
/**
* @param string $postalCode
*/
public function setPostalCode(string $postalCode): void
public function setPostalCode(string $postalCode)
{
$this->postalCode = $postalCode;
}
Expand Down Expand Up @@ -99,7 +99,7 @@ public function getCountryIso2(): string
/**
* @param string $countryIso2
*/
public function setCountryIso2(string $countryIso2): void
public function setCountryIso2(string $countryIso2)
{
$this->countryIso2 = $countryIso2;
}
Expand All @@ -115,7 +115,7 @@ public function getCountry(): string
/**
* @param string $country
*/
public function setCountry(string $country): void
public function setCountry(string $country)
{
$this->country = $country;
}
Expand All @@ -132,7 +132,7 @@ public function getPhoneNumbers(): array
* @param string $phoneNumber
* @param string $type
*/
public function addPhone(string $phoneNumber, string $type = 'landline'): void
public function addPhone(string $phoneNumber, string $type = 'landline')
{
$phone = new Phone($phoneNumber, $type);

Expand Down
20 changes: 10 additions & 10 deletions src/Models/Customer.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ public function getFirstName(): string
/**
* @param string $firstName
*/
public function setFirstName(string $firstName): void
public function setFirstName(string $firstName)
{
$this->firstName = $firstName;
}
Expand All @@ -113,7 +113,7 @@ public function getMiddleName(): string
/**
* @param string $middleName
*/
public function setMiddleName(string $middleName): void
public function setMiddleName(string $middleName)
{
$this->middleName = $middleName;
}
Expand All @@ -129,7 +129,7 @@ public function getLastName(): string
/**
* @param string $lastName
*/
public function setLastName(string $lastName): void
public function setLastName(string $lastName)
{
$this->lastName = $lastName;
}
Expand Down Expand Up @@ -157,7 +157,7 @@ public function getFullName(): string
/**
* @param string $fullName
*/
public function setFullName(string $fullName): void
public function setFullName(string $fullName)
{
$this->fullName = $fullName;
}
Expand All @@ -173,7 +173,7 @@ public function getEmail(): string
/**
* @param string $email
*/
public function setEmail(string $email): void
public function setEmail(string $email)
{
$this->email = $email;
}
Expand All @@ -189,7 +189,7 @@ public function getPhoneNumbers(): array
/**
* @param Phone $phone
*/
public function addPhoneNumber(Phone $phone): void
public function addPhoneNumber(Phone $phone)
{
$this->phoneNumbers[] = $phone;
}
Expand All @@ -206,7 +206,7 @@ public function getDob(): \DateTime
/**
* @param \DateTime $dob
*/
public function setDob(\DateTime $dob): void
public function setDob(\DateTime $dob)
{
$this->dob = $dob;
}
Expand All @@ -222,7 +222,7 @@ public function getCompanyName(): string
/**
* @param string $companyName
*/
public function setCompanyName(string $companyName): void
public function setCompanyName(string $companyName)
{
$this->companyName = $companyName;
}
Expand All @@ -238,7 +238,7 @@ public function getCompanyVatId(): string
/**
* @param string $companyVatId
*/
public function setCompanyVatId(string $companyVatId): void
public function setCompanyVatId(string $companyVatId)
{
$this->companyVatId = $companyVatId;
}
Expand All @@ -254,7 +254,7 @@ public function getExternalData(): ExternalData
/**
* @param ExternalData $externalData
*/
public function setExternalData(ExternalData $externalData): void
public function setExternalData(ExternalData $externalData)
{
$this->externalData = $externalData;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Customer/ExternalData.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public function getId(): int
/**
* @param int $id
*/
public function setId(int $id): void
public function setId(int $id)
{
$this->id = $id;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Models/DateRange.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public function getStart(): \DateTime
/**
* @param \DateTime $start
*/
public function setStart(\DateTime $start): void
public function setStart(\DateTime $start)
{
$this->start = $start;
}
Expand All @@ -69,7 +69,7 @@ public function getEnd(): \DateTime
/**
* @param \DateTime $end
*/
public function setEnd(\DateTime $end): void
public function setEnd(\DateTime $end)
{
$this->end = $end;
}
Expand Down
14 changes: 7 additions & 7 deletions src/Models/Item.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function getName(): string
/**
* @param string $name
*/
public function setName(string $name): void
public function setName(string $name)
{
$this->name = $name;
}
Expand All @@ -82,15 +82,15 @@ public function getPriceWithTax(): float
/**
* @param float $priceWithTax
*/
public function setPriceWithTax(float $priceWithTax): void
public function setPriceWithTax(float $priceWithTax)
{
$this->priceWithTax = $priceWithTax;
}

/**
* @param float $priceWithoutTax
*/
public function setPriceWithoutTax(float $priceWithoutTax): void
public function setPriceWithoutTax(float $priceWithoutTax)
{
$this->priceWithoutTax = $priceWithoutTax;
}
Expand All @@ -106,7 +106,7 @@ public function getSku(): string
/**
* @param string $sku
*/
public function setSku(string $sku): void
public function setSku(string $sku)
{
$this->sku = $sku;
}
Expand All @@ -122,7 +122,7 @@ public function getEan13(): int
/**
* @param int $ean13
*/
public function setEan13(int $ean13): void
public function setEan13(int $ean13)
{
$this->ean13 = $ean13;
}
Expand All @@ -138,7 +138,7 @@ public function getUpc(): int
/**
* @param int $upc
*/
public function setUpc(int $upc): void
public function setUpc(int $upc)
{
$this->upc = $upc;
}
Expand All @@ -154,7 +154,7 @@ public function getWeight(): float
/**
* @param float $weight
*/
public function setWeight(float $weight): void
public function setWeight(float $weight)
{
$this->weight = $weight;
}
Expand Down
16 changes: 8 additions & 8 deletions src/Models/Order.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public function getDate(): \DateTime
/**
* @param \DateTime $date
*/
public function setDate(\DateTime $date): void
public function setDate(\DateTime $date)
{
$this->date = $date;
}
Expand All @@ -79,7 +79,7 @@ public function getLastUpdate(): \DateTime
/**
* @param \DateTime $lastUpdate
*/
public function setLastUpdate(\DateTime $lastUpdate): void
public function setLastUpdate(\DateTime $lastUpdate)
{
$this->lastUpdate = $lastUpdate;
}
Expand All @@ -95,7 +95,7 @@ public function getCustomer(): Customer
/**
* @param Customer $customer
*/
public function setCustomer(Customer $customer): void
public function setCustomer(Customer $customer)
{
$this->customer = $customer;
}
Expand All @@ -111,7 +111,7 @@ public function getDeliveryAddress(): DeliveryAddress
/**
* @param DeliveryAddress $deliveryAddress
*/
public function setDeliveryAddress(DeliveryAddress $deliveryAddress): void
public function setDeliveryAddress(DeliveryAddress $deliveryAddress)
{
$this->deliveryAddress = $deliveryAddress;
}
Expand All @@ -127,7 +127,7 @@ public function getInvoiceAddress(): InvoiceAddress
/**
* @param InvoiceAddress $invoiceAddress
*/
public function setInvoiceAddress(InvoiceAddress $invoiceAddress): void
public function setInvoiceAddress(InvoiceAddress $invoiceAddress)
{
$this->invoiceAddress = $invoiceAddress;
}
Expand All @@ -143,7 +143,7 @@ public function getOrderLines(): array
/**
* @param array $orderLines
*/
public function setOrderLines(array $orderLines): void
public function setOrderLines(array $orderLines)
{
$this->orderLines = $orderLines;
}
Expand All @@ -159,7 +159,7 @@ public function getExternalData(): ExternalData
/**
* @param ExternalData $externalData
*/
public function setExternalData(ExternalData $externalData): void
public function setExternalData(ExternalData $externalData)
{
$this->externalData = $externalData;
}
Expand All @@ -175,7 +175,7 @@ public function getPayment(): Payment
/**
* @param Payment $payment
*/
public function setPayment(Payment $payment): void
public function setPayment(Payment $payment)
{
$this->payment = $payment;
}
Expand Down
8 changes: 4 additions & 4 deletions src/Models/Order/ExternalData.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public function getOrderId(): int
/**
* @param int $orderId
*/
public function setOrderId(int $orderId): void
public function setOrderId(int $orderId)
{
$this->orderId = $orderId;
}
Expand All @@ -57,7 +57,7 @@ public function getOrderCode(): string
/**
* @param string $orderCode
*/
public function setOrderCode(string $orderCode): void
public function setOrderCode(string $orderCode)
{
$this->orderCode = $orderCode;
}
Expand All @@ -73,7 +73,7 @@ public function getOrderIp(): string
/**
* @param string $orderIp
*/
public function setOrderIp(string $orderIp): void
public function setOrderIp(string $orderIp)
{
$this->orderIp = $orderIp;
}
Expand All @@ -89,7 +89,7 @@ public function getJson(): string
/**
* @param string $json
*/
public function setJson(string $json): void
public function setJson(string $json)
{
$this->json = $json;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/OrderLine.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function getExternalData(): ExternalData
/**
* @param ExternalData $externalData
*/
public function setExternalData(ExternalData $externalData): void
public function setExternalData(ExternalData $externalData)
{
$this->externalData = $externalData;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/OrderLine/ExternalData.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public function getJson(): string
/**
* @param string $json
*/
public function setJson(string $json): void
public function setJson(string $json)
{
$this->json = $json;
}
Expand Down
2 changes: 1 addition & 1 deletion src/Models/Payment.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function getType()
/**
* @param mixed $type
*/
public function setType($type): void
public function setType($type)
{
$this->type = $type;
}
Expand Down
4 changes: 2 additions & 2 deletions src/Models/Phone.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function getNumber(): string
/**
* @param string $number
*/
public function setNumber(string $number): void
public function setNumber(string $number)
{
$this->number = $number;
}
Expand All @@ -58,7 +58,7 @@ public function getType(): string
/**
* @param string $type
*/
public function setType(string $type): void
public function setType(string $type)
{
$this->type = $type;
}
Expand Down

0 comments on commit 8f9c83c

Please sign in to comment.