Nullable+void typehint

This commit is contained in:
Dennis Eichhorn 2018-03-13 20:55:24 +01:00
parent a2a0c44ee8
commit e6f3e122a0
3 changed files with 55 additions and 55 deletions

View File

@ -36,7 +36,7 @@ class Navigation
*
* @since 1.0.0
*/
public static function install(string $path = null, DatabasePool $dbPool = null) /* : void */
public static function install(string $path = null, DatabasePool $dbPool = null) : void
{
$navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);

View File

@ -166,7 +166,7 @@ class Invoice implements \JsonSerializable
return $this->number;
}
public function setNumber(string $number) /* : void */
public function setNumber(string $number) : void
{
$this->number = $number;
}
@ -176,7 +176,7 @@ class Invoice implements \JsonSerializable
return $this->type;
}
public function setType(int $type) /* : void */
public function setType(int $type) : void
{
$this->type = $type;
}
@ -186,7 +186,7 @@ class Invoice implements \JsonSerializable
return $this->status;
}
public function setStatus(int $status) /* : void */
public function setStatus(int $status) : void
{
$this->status = $status;
}
@ -196,7 +196,7 @@ class Invoice implements \JsonSerializable
return $this->createdAt;
}
public function setSend(\DateTime $send) /* : void */
public function setSend(\DateTime $send) : void
{
$this->send = $send;
}
@ -211,7 +211,7 @@ class Invoice implements \JsonSerializable
return $this->createdBy;
}
public function setCreatedBy(int $creator) /* : void */
public function setCreatedBy(int $creator) : void
{
$this->createdBy = $creator;
}
@ -221,12 +221,12 @@ class Invoice implements \JsonSerializable
return $this->client;
}
public function setClient($client) /* : void */
public function setClient($client) : void
{
$this->client = $client;
}
public function setShipTo(string $ship) /* : void */
public function setShipTo(string $ship) : void
{
$this->shipTo = $ship;
}
@ -236,7 +236,7 @@ class Invoice implements \JsonSerializable
return $this->shipTo;
}
public function setShipFAO(string $ship) /* : void */
public function setShipFAO(string $ship) : void
{
$this->shipFAO = $ship;
}
@ -246,7 +246,7 @@ class Invoice implements \JsonSerializable
return $this->shipFAO;
}
public function setShipAddress(string $ship) /* : void */
public function setShipAddress(string $ship) : void
{
$this->shipAddress = $ship;
}
@ -256,7 +256,7 @@ class Invoice implements \JsonSerializable
return $this->shipAddress;
}
public function setShipCity(string $ship) /* : void */
public function setShipCity(string $ship) : void
{
$this->shipCity = $ship;
}
@ -266,7 +266,7 @@ class Invoice implements \JsonSerializable
return $this->shipCity;
}
public function setShipZip($ship) /* : void */
public function setShipZip($ship) : void
{
$this->shipZip = $ship;
}
@ -276,7 +276,7 @@ class Invoice implements \JsonSerializable
return $this->shipZip;
}
public function setShipCountry(string $ship) /* : void */
public function setShipCountry(string $ship) : void
{
$this->shipCountry = $ship;
}
@ -286,7 +286,7 @@ class Invoice implements \JsonSerializable
return $this->shipCountry;
}
public function setBillTo(string $bill) /* : void */
public function setBillTo(string $bill) : void
{
$this->billTo = $bill;
}
@ -296,7 +296,7 @@ class Invoice implements \JsonSerializable
return $this->billTo;
}
public function setBillFAO(string $bill) /* : void */
public function setBillFAO(string $bill) : void
{
$this->billFAO = $bill;
}
@ -306,7 +306,7 @@ class Invoice implements \JsonSerializable
return $this->billFAO;
}
public function setBillAddress(string $bill) /* : void */
public function setBillAddress(string $bill) : void
{
$this->billAddress = $bill;
}
@ -316,7 +316,7 @@ class Invoice implements \JsonSerializable
return $this->billAddress;
}
public function setBillCity(string $bill) /* : void */
public function setBillCity(string $bill) : void
{
$this->billCity = $bill;
}
@ -326,7 +326,7 @@ class Invoice implements \JsonSerializable
return $this->billCity;
}
public function setBillZip($bill) /* : void */
public function setBillZip($bill) : void
{
$this->billZip = $bill;
}
@ -336,7 +336,7 @@ class Invoice implements \JsonSerializable
return $this->billZip;
}
public function setBillCountry(string $bill) /* : void */
public function setBillCountry(string $bill) : void
{
$this->billCountry = $bill;
}
@ -346,7 +346,7 @@ class Invoice implements \JsonSerializable
return $this->billCountry;
}
public function setReferer(int $referer) /* : void */
public function setReferer(int $referer) : void
{
$this->referer = $referer;
}
@ -356,7 +356,7 @@ class Invoice implements \JsonSerializable
return $this->referer;
}
public function setRefererName(string $refererName) /* : void */
public function setRefererName(string $refererName) : void
{
$this->refererName = $refererName;
}
@ -366,7 +366,7 @@ class Invoice implements \JsonSerializable
return $this->refererName;
}
public function setTaxId(string $tax) /* : void */
public function setTaxId(string $tax) : void
{
$this->taxId = $tax;
}
@ -376,7 +376,7 @@ class Invoice implements \JsonSerializable
return $this->taxId;
}
public function setInsurance(Money $insurance) /* : void */
public function setInsurance(Money $insurance) : void
{
$this->insurance = $insurance;
}
@ -386,7 +386,7 @@ class Invoice implements \JsonSerializable
return $this->insurance;
}
public function setFreight(Money $freight) /* : void */
public function setFreight(Money $freight) : void
{
$this->freight = $freight;
}
@ -406,7 +406,7 @@ class Invoice implements \JsonSerializable
return $this->gross;
}
public function setCurrency(string $currency) /* : void */
public function setCurrency(string $currency) : void
{
$this->currency = $currency;
}
@ -416,7 +416,7 @@ class Invoice implements \JsonSerializable
return $this->currency;
}
public function setInfo(string $info) /* : void */
public function setInfo(string $info) : void
{
$this->info = $info;
}
@ -426,7 +426,7 @@ class Invoice implements \JsonSerializable
return $this->info;
}
public function setPayment(int $payment) /* : void */
public function setPayment(int $payment) : void
{
$this->payment = $payment;
}
@ -436,7 +436,7 @@ class Invoice implements \JsonSerializable
return $this->payment;
}
public function setPaymentText(string $payment) /* : void */
public function setPaymentText(string $payment) : void
{
$this->paymentText = $payment;
}
@ -446,7 +446,7 @@ class Invoice implements \JsonSerializable
return $this->paymentText;
}
public function setTerms(int $terms) /* : void */
public function setTerms(int $terms) : void
{
$this->terms = $terms;
}
@ -456,7 +456,7 @@ class Invoice implements \JsonSerializable
return $this->terms;
}
public function setTermsText(string $terms) /* : void */
public function setTermsText(string $terms) : void
{
$this->termsText = $terms;
}
@ -466,7 +466,7 @@ class Invoice implements \JsonSerializable
return $this->termsText;
}
public function setShipping(int $shipping) /* : void */
public function setShipping(int $shipping) : void
{
$this->shipping = $shipping;
}
@ -476,7 +476,7 @@ class Invoice implements \JsonSerializable
return $this->shipping;
}
public function setShippingText(string $shipping) /* : void */
public function setShippingText(string $shipping) : void
{
$this->shippingText = $shipping;
}
@ -491,7 +491,7 @@ class Invoice implements \JsonSerializable
return $this->vouchers;
}
public function addVoucher(string $voucher) /* : void */
public function addVoucher(string $voucher) : void
{
$this->vouchers[] = $voucher;
}
@ -501,7 +501,7 @@ class Invoice implements \JsonSerializable
return $this->trackings;
}
public function addTracking(string $tracking) /* : void */
public function addTracking(string $tracking) : void
{
$this->trackings[] = $tracking;
}
@ -511,7 +511,7 @@ class Invoice implements \JsonSerializable
return $this->elements;
}
public function addElement($element) /* : void */
public function addElement($element) : void
{
$this->elements[] = $element;
}

View File

@ -78,7 +78,7 @@ class InvoiceElement implements \JsonSerializable
return $this->id;
}
public function setEvent(int $event) /* : void */
public function setEvent(int $event) : void
{
$this->event = $event;
}
@ -88,7 +88,7 @@ class InvoiceElement implements \JsonSerializable
return $this->event;
}
public function setPromotion(int $promotion) /* : void */
public function setPromotion(int $promotion) : void
{
$this->promotion = $promotion;
}
@ -98,7 +98,7 @@ class InvoiceElement implements \JsonSerializable
return $this->promotion;
}
public function setOrder(int $order) /* : void */
public function setOrder(int $order) : void
{
$this->order = $order;
}
@ -108,12 +108,12 @@ class InvoiceElement implements \JsonSerializable
return $this->order;
}
public function setItem($item) /* : void */
public function setItem($item) : void
{
$this->item = $item;
}
public function setItemName(string $name) /* : void */
public function setItemName(string $name) : void
{
$this->itemName = $name;
}
@ -123,7 +123,7 @@ class InvoiceElement implements \JsonSerializable
return $this->itemName;
}
public function setItemDescription(string $description) /* : void */
public function setItemDescription(string $description) : void
{
$this->itemDescription = $description;
}
@ -133,7 +133,7 @@ class InvoiceElement implements \JsonSerializable
return $this->itemDescription;
}
public function setQuantity(int $quantity) /* : void */
public function setQuantity(int $quantity) : void
{
$this->quantity = $quantity;
}
@ -143,7 +143,7 @@ class InvoiceElement implements \JsonSerializable
return $this->quantity;
}
public function setSinglePrice(Money $price) /* : void */
public function setSinglePrice(Money $price) : void
{
$this->singlePrice = $price;
}
@ -153,7 +153,7 @@ class InvoiceElement implements \JsonSerializable
return $this->singlePrice;
}
public function setTotalPrice(Money $price) /* : void */
public function setTotalPrice(Money $price) : void
{
$this->totalPrice = $price;
}
@ -163,7 +163,7 @@ class InvoiceElement implements \JsonSerializable
return $this->totalPrice;
}
public function setDiscountPrice(Money $discount) /* : void */
public function setDiscountPrice(Money $discount) : void
{
$this->singleDiscountP = $discount;
}
@ -173,7 +173,7 @@ class InvoiceElement implements \JsonSerializable
return $this->singleDiscountP;
}
public function setTotalDiscountPrice(Money $discount) /* : void */
public function setTotalDiscountPrice(Money $discount) : void
{
$this->totalDiscountP = $discount;
}
@ -183,7 +183,7 @@ class InvoiceElement implements \JsonSerializable
return $this->totalDiscountP;
}
public function setDiscountPercentage(float $discount) /* : void */
public function setDiscountPercentage(float $discount) : void
{
$this->singleDiscountR = $discount;
}
@ -193,7 +193,7 @@ class InvoiceElement implements \JsonSerializable
return $this->singleDiscountR;
}
public function setTotalDiscountPercentage(float $discount) /* : void */
public function setTotalDiscountPercentage(float $discount) : void
{
$this->totalDiscountR = $discount;
}
@ -203,7 +203,7 @@ class InvoiceElement implements \JsonSerializable
return $this->totalDiscountR;
}
public function setDiscountQuantity($quantity) /* : void */
public function setDiscountQuantity($quantity) : void
{
$this->discountQ = $quantity;
}
@ -213,7 +213,7 @@ class InvoiceElement implements \JsonSerializable
return $this->discountQ;
}
public function setSingleNetPrice(Money $price) /* : void */
public function setSingleNetPrice(Money $price) : void
{
$this->singlePriceNet = $price;
}
@ -223,7 +223,7 @@ class InvoiceElement implements \JsonSerializable
return $this->singlePriceNet;
}
public function setTotalNetPrice(Money $price) /* : void */
public function setTotalNetPrice(Money $price) : void
{
$this->totalPriceNet = $price;
}
@ -233,7 +233,7 @@ class InvoiceElement implements \JsonSerializable
return $this->totalPriceNet;
}
public function setTaxPrice(Money $tax) /* : void */
public function setTaxPrice(Money $tax) : void
{
$this->taxP = $tax;
}
@ -243,7 +243,7 @@ class InvoiceElement implements \JsonSerializable
return $this->taxP;
}
public function setTaxPercentag(float $tax) /* : void */
public function setTaxPercentag(float $tax) : void
{
$this->taxR = $tax;
}
@ -253,7 +253,7 @@ class InvoiceElement implements \JsonSerializable
return $this->taxR;
}
public function setSingleGrossPrice(Money $price) /* : void */
public function setSingleGrossPrice(Money $price) : void
{
$this->singlePriceGross = $price;
}
@ -263,7 +263,7 @@ class InvoiceElement implements \JsonSerializable
return $this->singlePriceGross;
}
public function setTotalGrossPrice(Money $price) /* : void */
public function setTotalGrossPrice(Money $price) : void
{
$this->totalPriceGross = $price;
}