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 * @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); $navData = json_decode(file_get_contents(__DIR__ . '/Navigation.install.json'), true);

View File

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

View File

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