From 922c01186fe833101bde1f26f2a795c6b7d1edc9 Mon Sep 17 00:00:00 2001 From: Michael Calcinai Date: Sat, 14 Mar 2015 10:03:57 +1300 Subject: [PATCH] Fix for issue #11 - Corrected types for getters and setters of array properties --- generator/templates/model.twig | 5 ++- .../Models/Accounting/BankTransaction.php | 8 ++-- src/XeroPHP/Models/Accounting/Contact.php | 40 ++++++++--------- .../Models/Accounting/ContactGroup.php | 4 +- src/XeroPHP/Models/Accounting/CreditNote.php | 12 ++--- .../Models/Accounting/ExpenseClaim.php | 4 +- src/XeroPHP/Models/Accounting/Invoice.php | 16 +++---- src/XeroPHP/Models/Accounting/Item.php | 8 ++-- src/XeroPHP/Models/Accounting/Journal.php | 4 +- .../Models/Accounting/Journal/JournalLine.php | 4 +- .../Models/Accounting/ManualJournal.php | 8 ++-- .../Models/Accounting/Organisation.php | 16 +++---- .../Accounting/Organisation/PaymentTerm.php | 8 ++-- src/XeroPHP/Models/Accounting/Overpayment.php | 12 ++--- src/XeroPHP/Models/Accounting/Prepayment.php | 12 ++--- src/XeroPHP/Models/Accounting/Receipt.php | 8 ++-- .../Models/Accounting/RepeatingInvoice.php | 8 ++-- src/XeroPHP/Models/Accounting/TaxRate.php | 10 ++--- .../Models/Accounting/TrackingCategory.php | 4 +- src/XeroPHP/Models/Files/Folder.php | 4 +- src/XeroPHP/Models/PayrollAU/Employee.php | 16 +++---- .../PayrollAU/Employee/OpeningBalance.php | 24 +++++----- .../Models/PayrollAU/Employee/PayTemplate.php | 32 +++++++------- .../PayrollAU/Employee/TaxDeclaration.php | 4 +- .../Models/PayrollAU/LeaveApplication.php | 4 +- .../LeaveApplication/LeavePeriod.php | 4 +- src/XeroPHP/Models/PayrollAU/PayItem.php | 16 +++---- .../Models/PayrollAU/PayItem/EarningsRate.php | 4 +- .../Models/PayrollAU/PayItem/LeaveType.php | 4 +- src/XeroPHP/Models/PayrollAU/PayRun.php | 12 ++--- src/XeroPHP/Models/PayrollAU/Payslip.php | 44 +++++++++---------- .../PayrollAU/Payslip/DeductionLine.php | 4 +- .../Models/PayrollAU/Payslip/EarningsLine.php | 4 +- .../PayrollAU/Payslip/LeaveAccrualLine.php | 4 +- .../PayrollAU/Payslip/LeaveEarningsLine.php | 4 +- .../PayrollAU/Payslip/SuperannuationLine.php | 4 +- src/XeroPHP/Models/PayrollAU/Setting.php | 8 ++-- src/XeroPHP/Models/PayrollAU/Timesheet.php | 8 ++-- .../PayrollAU/Timesheet/TimesheetLine.php | 4 +- src/XeroPHP/Models/PayrollUS/Employee.php | 16 +++---- .../PayrollUS/Employee/OpeningBalance.php | 16 +++---- .../Models/PayrollUS/Employee/PayTemplate.php | 20 ++++----- src/XeroPHP/Models/PayrollUS/PayItem.php | 20 ++++----- src/XeroPHP/Models/PayrollUS/PayRun.php | 12 ++--- src/XeroPHP/Models/PayrollUS/Paystub.php | 40 ++++++++--------- .../Models/PayrollUS/Paystub/EarningsLine.php | 4 +- .../PayrollUS/Paystub/LeaveEarningsLine.php | 4 +- .../Models/PayrollUS/Paystub/TimeOffLine.php | 4 +- .../Paystub/TimesheetEarningsLine.php | 4 +- src/XeroPHP/Models/PayrollUS/Setting.php | 8 ++-- src/XeroPHP/Models/PayrollUS/Timesheet.php | 8 ++-- .../PayrollUS/Timesheet/TimesheetLine.php | 4 +- 52 files changed, 280 insertions(+), 279 deletions(-) diff --git a/generator/templates/model.twig b/generator/templates/model.twig index 370e0aa9..f23cc269 100644 --- a/generator/templates/model.twig +++ b/generator/templates/model.twig @@ -104,7 +104,8 @@ class {{ model.ClassName }} extends Remote\Object { {# getters and setters #} {% for property in model.properties %} /** - * @return {{ property.PHPType }} + * @return {{ property.PHPType }}{% if property.isArray %}[]{% endif %} + */ public function get{{ property.Name }}(){ return $this->_data['{{ property.Name }}']; @@ -112,7 +113,7 @@ class {{ model.ClassName }} extends Remote\Object { {% if property.isReadOnly == false %} /** - * @param {{ property.PHPType }}{% if property.isArray %}[]{% endif %} $value + * @param {{ property.PHPType }} $value * @return {{ model.ClassName }} */ public function {% if property.isArray %}add{% else %}set{% endif %}{{ property.NameSingular }}({% if property.isHintable %}{{ property.PHPType }} {% endif %}$value){ diff --git a/src/XeroPHP/Models/Accounting/BankTransaction.php b/src/XeroPHP/Models/Accounting/BankTransaction.php index 16873a41..2a677152 100644 --- a/src/XeroPHP/Models/Accounting/BankTransaction.php +++ b/src/XeroPHP/Models/Accounting/BankTransaction.php @@ -254,14 +254,14 @@ public function setContact(Contact $value){ } /** - * @return LineItem + * @return LineItem[] */ public function getLineitems(){ return $this->_data['Lineitems']; } /** - * @param LineItem[] $value + * @param LineItem $value * @return BankTransaction */ public function addLineitem(LineItem $value){ @@ -407,14 +407,14 @@ public function setStatus($value){ } /** - * @return float + * @return float[] */ public function getLineAmountTypes(){ return $this->_data['LineAmountTypes']; } /** - * @param float[] $value + * @param float $value * @return BankTransaction */ public function addLineAmountType($value){ diff --git a/src/XeroPHP/Models/Accounting/Contact.php b/src/XeroPHP/Models/Accounting/Contact.php index b1353dcd..2e3f8345 100644 --- a/src/XeroPHP/Models/Accounting/Contact.php +++ b/src/XeroPHP/Models/Accounting/Contact.php @@ -474,14 +474,14 @@ public function setSkypeUserName($value){ } /** - * @return ContactPerson + * @return ContactPerson[] */ public function getContactPersons(){ return $this->_data['ContactPersons']; } /** - * @param ContactPerson[] $value + * @param ContactPerson $value * @return Contact */ public function addContactPerson(ContactPerson $value){ @@ -491,14 +491,14 @@ public function addContactPerson(ContactPerson $value){ } /** - * @return string + * @return string[] */ public function getBankAccountDetails(){ return $this->_data['BankAccountDetails']; } /** - * @param string[] $value + * @param string $value * @return Contact */ public function addBankAccountDetail($value){ @@ -559,14 +559,14 @@ public function setAccountsPayableTaxType($value){ } /** - * @return Address + * @return Address[] */ public function getAddresses(){ return $this->_data['Addresses']; } /** - * @param Address[] $value + * @param Address $value * @return Contact */ public function addAddress(Address $value){ @@ -576,14 +576,14 @@ public function addAddress(Address $value){ } /** - * @return Phone + * @return Phone[] */ public function getPhones(){ return $this->_data['Phones']; } /** - * @param Phone[] $value + * @param Phone $value * @return Contact */ public function addPhone(Phone $value){ @@ -712,14 +712,14 @@ public function setPurchasesDefaultAccountCode($value){ } /** - * @return TrackingCategory + * @return TrackingCategory[] */ public function getSalesTrackingCategories(){ return $this->_data['SalesTrackingCategories']; } /** - * @param TrackingCategory[] $value + * @param TrackingCategory $value * @return Contact */ public function addSalesTrackingCategory(TrackingCategory $value){ @@ -729,14 +729,14 @@ public function addSalesTrackingCategory(TrackingCategory $value){ } /** - * @return TrackingCategory + * @return TrackingCategory[] */ public function getPurchasesTrackingCategories(){ return $this->_data['PurchasesTrackingCategories']; } /** - * @param TrackingCategory[] $value + * @param TrackingCategory $value * @return Contact */ public function addPurchasesTrackingCategory(TrackingCategory $value){ @@ -746,14 +746,14 @@ public function addPurchasesTrackingCategory(TrackingCategory $value){ } /** - * @return ContactGroup + * @return ContactGroup[] */ public function getContactGroups(){ return $this->_data['ContactGroups']; } /** - * @param ContactGroup[] $value + * @param ContactGroup $value * @return Contact */ public function addContactGroup(ContactGroup $value){ @@ -797,14 +797,14 @@ public function setBrandingTheme(BrandingTheme $value){ } /** - * @return string + * @return string[] */ public function getBatchPayments(){ return $this->_data['BatchPayments']; } /** - * @param string[] $value + * @param string $value * @return Contact */ public function addBatchPayment($value){ @@ -831,14 +831,14 @@ public function setDiscount($value){ } /** - * @return string + * @return string[] */ public function getBalances(){ return $this->_data['Balances']; } /** - * @param string[] $value + * @param string $value * @return Contact */ public function addBalance($value){ @@ -848,14 +848,14 @@ public function addBalance($value){ } /** - * @return PaymentTerm + * @return PaymentTerm[] */ public function getPaymentTerms(){ return $this->_data['PaymentTerms']; } /** - * @param PaymentTerm[] $value + * @param PaymentTerm $value * @return Contact */ public function addPaymentTerm(PaymentTerm $value){ diff --git a/src/XeroPHP/Models/Accounting/ContactGroup.php b/src/XeroPHP/Models/Accounting/ContactGroup.php index 9697aae3..fed72300 100644 --- a/src/XeroPHP/Models/Accounting/ContactGroup.php +++ b/src/XeroPHP/Models/Accounting/ContactGroup.php @@ -161,14 +161,14 @@ public function setContactGroupID($value){ } /** - * @return Contact + * @return Contact[] */ public function getContacts(){ return $this->_data['Contacts']; } /** - * @param Contact[] $value + * @param Contact $value * @return ContactGroup */ public function addContact(Contact $value){ diff --git a/src/XeroPHP/Models/Accounting/CreditNote.php b/src/XeroPHP/Models/Accounting/CreditNote.php index eb1550f5..3280a13a 100644 --- a/src/XeroPHP/Models/Accounting/CreditNote.php +++ b/src/XeroPHP/Models/Accounting/CreditNote.php @@ -314,14 +314,14 @@ public function setStatus($value){ } /** - * @return float + * @return float[] */ public function getLineAmountTypes(){ return $this->_data['LineAmountTypes']; } /** - * @param float[] $value + * @param float $value * @return CreditNote */ public function addLineAmountType($value){ @@ -331,14 +331,14 @@ public function addLineAmountType($value){ } /** - * @return LineItem + * @return LineItem[] */ public function getLineItems(){ return $this->_data['LineItems']; } /** - * @param LineItem[] $value + * @param LineItem $value * @return CreditNote */ public function addLineItem(LineItem $value){ @@ -535,14 +535,14 @@ public function setRemainingCredit($value){ } /** - * @return Allocation + * @return Allocation[] */ public function getAllocations(){ return $this->_data['Allocations']; } /** - * @param Allocation[] $value + * @param Allocation $value * @return CreditNote */ public function addAllocation(Allocation $value){ diff --git a/src/XeroPHP/Models/Accounting/ExpenseClaim.php b/src/XeroPHP/Models/Accounting/ExpenseClaim.php index 6a717b31..0b7589f4 100644 --- a/src/XeroPHP/Models/Accounting/ExpenseClaim.php +++ b/src/XeroPHP/Models/Accounting/ExpenseClaim.php @@ -112,14 +112,14 @@ public function setUser(User $value){ } /** - * @return Receipt + * @return Receipt[] */ public function getReceipts(){ return $this->_data['Receipts']; } /** - * @param Receipt[] $value + * @param Receipt $value * @return ExpenseClaim */ public function addReceipt(Receipt $value){ diff --git a/src/XeroPHP/Models/Accounting/Invoice.php b/src/XeroPHP/Models/Accounting/Invoice.php index 6f3ce2bb..12835063 100644 --- a/src/XeroPHP/Models/Accounting/Invoice.php +++ b/src/XeroPHP/Models/Accounting/Invoice.php @@ -347,14 +347,14 @@ public function setContact(Contact $value){ } /** - * @return LineItem + * @return LineItem[] */ public function getLineItems(){ return $this->_data['LineItems']; } /** - * @param LineItem[] $value + * @param LineItem $value * @return Invoice */ public function addLineItem(LineItem $value){ @@ -398,14 +398,14 @@ public function setDueDate(\DateTime $value){ } /** - * @return float + * @return float[] */ public function getLineAmountTypes(){ return $this->_data['LineAmountTypes']; } /** - * @param float[] $value + * @param float $value * @return Invoice */ public function addLineAmountType($value){ @@ -633,7 +633,7 @@ public function getHasAttachments(){ /** - * @return Payment + * @return Payment[] */ public function getPayments(){ return $this->_data['Payments']; @@ -641,7 +641,7 @@ public function getPayments(){ /** - * @return Prepayment + * @return Prepayment[] */ public function getPrepayments(){ return $this->_data['Prepayments']; @@ -649,7 +649,7 @@ public function getPrepayments(){ /** - * @return Overpayment + * @return Overpayment[] */ public function getOverpayments(){ return $this->_data['Overpayments']; @@ -697,7 +697,7 @@ public function getUpdatedDateUTC(){ /** - * @return CreditNote + * @return CreditNote[] */ public function getCreditNotes(){ return $this->_data['CreditNotes']; diff --git a/src/XeroPHP/Models/Accounting/Item.php b/src/XeroPHP/Models/Accounting/Item.php index e1fc1696..e167d635 100644 --- a/src/XeroPHP/Models/Accounting/Item.php +++ b/src/XeroPHP/Models/Accounting/Item.php @@ -141,14 +141,14 @@ public function setDescription($value){ } /** - * @return Purchase + * @return Purchase[] */ public function getPurchaseDetails(){ return $this->_data['PurchaseDetails']; } /** - * @param Purchase[] $value + * @param Purchase $value * @return Item */ public function addPurchaseDetail(Purchase $value){ @@ -158,14 +158,14 @@ public function addPurchaseDetail(Purchase $value){ } /** - * @return Sale + * @return Sale[] */ public function getSalesDetails(){ return $this->_data['SalesDetails']; } /** - * @param Sale[] $value + * @param Sale $value * @return Item */ public function addSalesDetail(Sale $value){ diff --git a/src/XeroPHP/Models/Accounting/Journal.php b/src/XeroPHP/Models/Accounting/Journal.php index ae6413b2..7fee34a6 100644 --- a/src/XeroPHP/Models/Accounting/Journal.php +++ b/src/XeroPHP/Models/Accounting/Journal.php @@ -272,14 +272,14 @@ public function setSourceType($value){ } /** - * @return JournalLine + * @return JournalLine[] */ public function getJournalLines(){ return $this->_data['JournalLines']; } /** - * @param JournalLine[] $value + * @param JournalLine $value * @return Journal */ public function addJournalLine(JournalLine $value){ diff --git a/src/XeroPHP/Models/Accounting/Journal/JournalLine.php b/src/XeroPHP/Models/Accounting/Journal/JournalLine.php index b8307e78..b4049e1d 100644 --- a/src/XeroPHP/Models/Accounting/Journal/JournalLine.php +++ b/src/XeroPHP/Models/Accounting/Journal/JournalLine.php @@ -323,14 +323,14 @@ public function setTaxName(TaxRate $value){ } /** - * @return TrackingCategory + * @return TrackingCategory[] */ public function getTrackingCategories(){ return $this->_data['TrackingCategories']; } /** - * @param TrackingCategory[] $value + * @param TrackingCategory $value * @return JournalLine */ public function addTrackingCategory(TrackingCategory $value){ diff --git a/src/XeroPHP/Models/Accounting/ManualJournal.php b/src/XeroPHP/Models/Accounting/ManualJournal.php index 54b67e0c..ac11ea70 100644 --- a/src/XeroPHP/Models/Accounting/ManualJournal.php +++ b/src/XeroPHP/Models/Accounting/ManualJournal.php @@ -156,14 +156,14 @@ public function setNarration($value){ } /** - * @return JournalLine + * @return JournalLine[] */ public function getJournalLines(){ return $this->_data['JournalLines']; } /** - * @param JournalLine[] $value + * @param JournalLine $value * @return ManualJournal */ public function addJournalLine(JournalLine $value){ @@ -190,14 +190,14 @@ public function setDate(\DateTime $value){ } /** - * @return float + * @return float[] */ public function getLineAmountTypes(){ return $this->_data['LineAmountTypes']; } /** - * @param float[] $value + * @param float $value * @return ManualJournal */ public function addLineAmountType($value){ diff --git a/src/XeroPHP/Models/Accounting/Organisation.php b/src/XeroPHP/Models/Accounting/Organisation.php index 027df3df..26b2ea04 100644 --- a/src/XeroPHP/Models/Accounting/Organisation.php +++ b/src/XeroPHP/Models/Accounting/Organisation.php @@ -655,14 +655,14 @@ public function setLineOfBusiness($value){ } /** - * @return Address + * @return Address[] */ public function getAddresses(){ return $this->_data['Addresses']; } /** - * @param Address[] $value + * @param Address $value * @return Organisation */ public function addAddress(Address $value){ @@ -672,14 +672,14 @@ public function addAddress(Address $value){ } /** - * @return Phone + * @return Phone[] */ public function getPhones(){ return $this->_data['Phones']; } /** - * @param Phone[] $value + * @param Phone $value * @return Organisation */ public function addPhone(Phone $value){ @@ -689,14 +689,14 @@ public function addPhone(Phone $value){ } /** - * @return ExternalLink + * @return ExternalLink[] */ public function getExternalLinks(){ return $this->_data['ExternalLinks']; } /** - * @param ExternalLink[] $value + * @param ExternalLink $value * @return Organisation */ public function addExternalLink(ExternalLink $value){ @@ -706,14 +706,14 @@ public function addExternalLink(ExternalLink $value){ } /** - * @return PaymentTerm + * @return PaymentTerm[] */ public function getPaymentTerms(){ return $this->_data['PaymentTerms']; } /** - * @param PaymentTerm[] $value + * @param PaymentTerm $value * @return Organisation */ public function addPaymentTerm(PaymentTerm $value){ diff --git a/src/XeroPHP/Models/Accounting/Organisation/PaymentTerm.php b/src/XeroPHP/Models/Accounting/Organisation/PaymentTerm.php index 914a9faf..8473c339 100644 --- a/src/XeroPHP/Models/Accounting/Organisation/PaymentTerm.php +++ b/src/XeroPHP/Models/Accounting/Organisation/PaymentTerm.php @@ -88,14 +88,14 @@ public static function getProperties(){ /** - * @return Bill + * @return Bill[] */ public function getBills(){ return $this->_data['Bills']; } /** - * @param Bill[] $value + * @param Bill $value * @return PaymentTerm */ public function addBill(Bill $value){ @@ -105,14 +105,14 @@ public function addBill(Bill $value){ } /** - * @return Sale + * @return Sale[] */ public function getSales(){ return $this->_data['Sales']; } /** - * @param Sale[] $value + * @param Sale $value * @return PaymentTerm */ public function addSale(Sale $value){ diff --git a/src/XeroPHP/Models/Accounting/Overpayment.php b/src/XeroPHP/Models/Accounting/Overpayment.php index 4aa30e5c..a0dc6bb8 100644 --- a/src/XeroPHP/Models/Accounting/Overpayment.php +++ b/src/XeroPHP/Models/Accounting/Overpayment.php @@ -296,14 +296,14 @@ public function setStatus($value){ } /** - * @return float + * @return float[] */ public function getLineAmountTypes(){ return $this->_data['LineAmountTypes']; } /** - * @param float[] $value + * @param float $value * @return Overpayment */ public function addLineAmountType($value){ @@ -313,14 +313,14 @@ public function addLineAmountType($value){ } /** - * @return LineItem + * @return LineItem[] */ public function getLineItems(){ return $this->_data['LineItems']; } /** - * @param LineItem[] $value + * @param LineItem $value * @return Overpayment */ public function addLineItem(LineItem $value){ @@ -483,14 +483,14 @@ public function setRemainingCredit($value){ } /** - * @return Allocation + * @return Allocation[] */ public function getAllocations(){ return $this->_data['Allocations']; } /** - * @param Allocation[] $value + * @param Allocation $value * @return Overpayment */ public function addAllocation(Allocation $value){ diff --git a/src/XeroPHP/Models/Accounting/Prepayment.php b/src/XeroPHP/Models/Accounting/Prepayment.php index 853159b3..e383a66f 100644 --- a/src/XeroPHP/Models/Accounting/Prepayment.php +++ b/src/XeroPHP/Models/Accounting/Prepayment.php @@ -296,14 +296,14 @@ public function setStatus($value){ } /** - * @return float + * @return float[] */ public function getLineAmountTypes(){ return $this->_data['LineAmountTypes']; } /** - * @param float[] $value + * @param float $value * @return Prepayment */ public function addLineAmountType($value){ @@ -313,14 +313,14 @@ public function addLineAmountType($value){ } /** - * @return LineItem + * @return LineItem[] */ public function getLineItems(){ return $this->_data['LineItems']; } /** - * @param LineItem[] $value + * @param LineItem $value * @return Prepayment */ public function addLineItem(LineItem $value){ @@ -483,14 +483,14 @@ public function setRemainingCredit($value){ } /** - * @return Allocation + * @return Allocation[] */ public function getAllocations(){ return $this->_data['Allocations']; } /** - * @param Allocation[] $value + * @param Allocation $value * @return Prepayment */ public function addAllocation(Allocation $value){ diff --git a/src/XeroPHP/Models/Accounting/Receipt.php b/src/XeroPHP/Models/Accounting/Receipt.php index 66d018b2..218b528a 100644 --- a/src/XeroPHP/Models/Accounting/Receipt.php +++ b/src/XeroPHP/Models/Accounting/Receipt.php @@ -222,14 +222,14 @@ public function setContact(Contact $value){ } /** - * @return LineItem + * @return LineItem[] */ public function getLineitems(){ return $this->_data['Lineitems']; } /** - * @param LineItem[] $value + * @param LineItem $value * @return Receipt */ public function addLineitem(LineItem $value){ @@ -273,14 +273,14 @@ public function setReference($value){ } /** - * @return float + * @return float[] */ public function getLineAmountTypes(){ return $this->_data['LineAmountTypes']; } /** - * @param float[] $value + * @param float $value * @return Receipt */ public function addLineAmountType($value){ diff --git a/src/XeroPHP/Models/Accounting/RepeatingInvoice.php b/src/XeroPHP/Models/Accounting/RepeatingInvoice.php index bcee4751..7d5942cd 100644 --- a/src/XeroPHP/Models/Accounting/RepeatingInvoice.php +++ b/src/XeroPHP/Models/Accounting/RepeatingInvoice.php @@ -227,14 +227,14 @@ public function setSchedule(Schedule $value){ } /** - * @return LineItem + * @return LineItem[] */ public function getLineItems(){ return $this->_data['LineItems']; } /** - * @param LineItem[] $value + * @param LineItem $value * @return RepeatingInvoice */ public function addLineItem(LineItem $value){ @@ -244,14 +244,14 @@ public function addLineItem(LineItem $value){ } /** - * @return float + * @return float[] */ public function getLineAmountTypes(){ return $this->_data['LineAmountTypes']; } /** - * @param float[] $value + * @param float $value * @return RepeatingInvoice */ public function addLineAmountType($value){ diff --git a/src/XeroPHP/Models/Accounting/TaxRate.php b/src/XeroPHP/Models/Accounting/TaxRate.php index 1fb0f719..7d087651 100644 --- a/src/XeroPHP/Models/Accounting/TaxRate.php +++ b/src/XeroPHP/Models/Accounting/TaxRate.php @@ -196,14 +196,14 @@ public function setTaxType($value){ } /** - * @return TaxComponent + * @return TaxComponent[] */ public function getTaxComponents(){ return $this->_data['TaxComponents']; } /** - * @param TaxComponent[] $value + * @param TaxComponent $value * @return TaxRate */ public function addTaxComponent(TaxComponent $value){ @@ -247,7 +247,7 @@ public function setReportTaxType($value){ } /** - * @return float + * @return float[] */ public function getCanApplyToAssets(){ return $this->_data['CanApplyToAssets']; @@ -263,7 +263,7 @@ public function getCanApplyToEquity(){ /** - * @return float + * @return float[] */ public function getCanApplyToExpenses(){ return $this->_data['CanApplyToExpenses']; @@ -271,7 +271,7 @@ public function getCanApplyToExpenses(){ /** - * @return float + * @return float[] */ public function getCanApplyToLiabilities(){ return $this->_data['CanApplyToLiabilities']; diff --git a/src/XeroPHP/Models/Accounting/TrackingCategory.php b/src/XeroPHP/Models/Accounting/TrackingCategory.php index fd6d61a4..8d845860 100644 --- a/src/XeroPHP/Models/Accounting/TrackingCategory.php +++ b/src/XeroPHP/Models/Accounting/TrackingCategory.php @@ -157,14 +157,14 @@ public function setStatus($value){ } /** - * @return TrackingOption + * @return TrackingOption[] */ public function getOptions(){ return $this->_data['Options']; } /** - * @param TrackingOption[] $value + * @param TrackingOption $value * @return TrackingCategory */ public function addOption(TrackingOption $value){ diff --git a/src/XeroPHP/Models/Files/Folder.php b/src/XeroPHP/Models/Files/Folder.php index e02ea341..83c5408e 100644 --- a/src/XeroPHP/Models/Files/Folder.php +++ b/src/XeroPHP/Models/Files/Folder.php @@ -214,14 +214,14 @@ public function setId($value){ } /** - * @return File + * @return File[] */ public function getFiles(){ return $this->_data['Files']; } /** - * @param File[] $value + * @param File $value * @return Folder */ public function addFile(File $value){ diff --git a/src/XeroPHP/Models/PayrollAU/Employee.php b/src/XeroPHP/Models/PayrollAU/Employee.php index e60cccb8..024c9017 100644 --- a/src/XeroPHP/Models/PayrollAU/Employee.php +++ b/src/XeroPHP/Models/PayrollAU/Employee.php @@ -357,14 +357,14 @@ public function setTitle($value){ } /** - * @return string + * @return string[] */ public function getMiddleNames(){ return $this->_data['MiddleNames']; } /** - * @param string[] $value + * @param string $value * @return Employee */ public function addMiddleName($value){ @@ -561,14 +561,14 @@ public function setEmployeeGroupName($value){ } /** - * @return BankAccount + * @return BankAccount[] */ public function getBankAccounts(){ return $this->_data['BankAccounts']; } /** - * @param BankAccount[] $value + * @param BankAccount $value * @return Employee */ public function addBankAccount(BankAccount $value){ @@ -595,14 +595,14 @@ public function setPayTemplate(PayTemplate $value){ } /** - * @return OpeningBalance + * @return OpeningBalance[] */ public function getOpeningBalances(){ return $this->_data['OpeningBalances']; } /** - * @param OpeningBalance[] $value + * @param OpeningBalance $value * @return Employee */ public function addOpeningBalance(OpeningBalance $value){ @@ -612,14 +612,14 @@ public function addOpeningBalance(OpeningBalance $value){ } /** - * @return SuperMembership + * @return SuperMembership[] */ public function getSuperMemberships(){ return $this->_data['SuperMemberships']; } /** - * @param SuperMembership[] $value + * @param SuperMembership $value * @return Employee */ public function addSuperMembership(SuperMembership $value){ diff --git a/src/XeroPHP/Models/PayrollAU/Employee/OpeningBalance.php b/src/XeroPHP/Models/PayrollAU/Employee/OpeningBalance.php index 682fa94e..07520a64 100644 --- a/src/XeroPHP/Models/PayrollAU/Employee/OpeningBalance.php +++ b/src/XeroPHP/Models/PayrollAU/Employee/OpeningBalance.php @@ -216,14 +216,14 @@ public function setTax($value){ } /** - * @return EarningsLine + * @return EarningsLine[] */ public function getEarningsLines(){ return $this->_data['EarningsLines']; } /** - * @param EarningsLine[] $value + * @param EarningsLine $value * @return OpeningBalance */ public function addEarningsLine(EarningsLine $value){ @@ -233,14 +233,14 @@ public function addEarningsLine(EarningsLine $value){ } /** - * @return DeductionLine + * @return DeductionLine[] */ public function getDeductionLines(){ return $this->_data['DeductionLines']; } /** - * @param DeductionLine[] $value + * @param DeductionLine $value * @return OpeningBalance */ public function addDeductionLine(DeductionLine $value){ @@ -250,14 +250,14 @@ public function addDeductionLine(DeductionLine $value){ } /** - * @return string + * @return string[] */ public function getSuperLines(){ return $this->_data['SuperLines']; } /** - * @param string[] $value + * @param string $value * @return OpeningBalance */ public function addSuperLine($value){ @@ -267,14 +267,14 @@ public function addSuperLine($value){ } /** - * @return ReimbursementLine + * @return ReimbursementLine[] */ public function getReimbursementLines(){ return $this->_data['ReimbursementLines']; } /** - * @param ReimbursementLine[] $value + * @param ReimbursementLine $value * @return OpeningBalance */ public function addReimbursementLine(ReimbursementLine $value){ @@ -284,14 +284,14 @@ public function addReimbursementLine(ReimbursementLine $value){ } /** - * @return string + * @return string[] */ public function getLeaveLines(){ return $this->_data['LeaveLines']; } /** - * @param string[] $value + * @param string $value * @return OpeningBalance */ public function addLeaveLine($value){ @@ -420,14 +420,14 @@ public function setLeaveTypeID($value){ } /** - * @return string + * @return string[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param string[] $value + * @param string $value * @return OpeningBalance */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Employee/PayTemplate.php b/src/XeroPHP/Models/PayrollAU/Employee/PayTemplate.php index c6cb640d..3258a1f2 100644 --- a/src/XeroPHP/Models/PayrollAU/Employee/PayTemplate.php +++ b/src/XeroPHP/Models/PayrollAU/Employee/PayTemplate.php @@ -251,14 +251,14 @@ public static function getProperties(){ /** - * @return float + * @return float[] */ public function getEarningsLines(){ return $this->_data['EarningsLines']; } /** - * @param float[] $value + * @param float $value * @return PayTemplate */ public function addEarningsLine($value){ @@ -268,14 +268,14 @@ public function addEarningsLine($value){ } /** - * @return DeductionLine + * @return DeductionLine[] */ public function getDeductionLines(){ return $this->_data['DeductionLines']; } /** - * @param DeductionLine[] $value + * @param DeductionLine $value * @return PayTemplate */ public function addDeductionLine(DeductionLine $value){ @@ -285,14 +285,14 @@ public function addDeductionLine(DeductionLine $value){ } /** - * @return string + * @return string[] */ public function getSuperLines(){ return $this->_data['SuperLines']; } /** - * @param string[] $value + * @param string $value * @return PayTemplate */ public function addSuperLine($value){ @@ -302,14 +302,14 @@ public function addSuperLine($value){ } /** - * @return ReimbursementLine + * @return ReimbursementLine[] */ public function getReimbursementLines(){ return $this->_data['ReimbursementLines']; } /** - * @param ReimbursementLine[] $value + * @param ReimbursementLine $value * @return PayTemplate */ public function addReimbursementLine(ReimbursementLine $value){ @@ -319,14 +319,14 @@ public function addReimbursementLine(ReimbursementLine $value){ } /** - * @return string + * @return string[] */ public function getLeaveLines(){ return $this->_data['LeaveLines']; } /** - * @param string[] $value + * @param string $value * @return PayTemplate */ public function addLeaveLine($value){ @@ -557,14 +557,14 @@ public function setLiabilityAccountCode($value){ } /** - * @return string + * @return string[] */ public function getMinimumMonthlyEarnings(){ return $this->_data['MinimumMonthlyEarnings']; } /** - * @param string[] $value + * @param string $value * @return PayTemplate */ public function addMinimumMonthlyEarning($value){ @@ -625,14 +625,14 @@ public function setLeaveTypeID($value){ } /** - * @return string + * @return string[] */ public function getAnnualNumberOfUnits(){ return $this->_data['AnnualNumberOfUnits']; } /** - * @param string[] $value + * @param string $value * @return PayTemplate */ public function addAnnualNumberOfUnit($value){ @@ -659,14 +659,14 @@ public function setFullTimeNumberOfUnitsPerPeriod($value){ } /** - * @return string + * @return string[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param string[] $value + * @param string $value * @return PayTemplate */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Employee/TaxDeclaration.php b/src/XeroPHP/Models/PayrollAU/Employee/TaxDeclaration.php index 38d7d863..fd9f0ff7 100644 --- a/src/XeroPHP/Models/PayrollAU/Employee/TaxDeclaration.php +++ b/src/XeroPHP/Models/PayrollAU/Employee/TaxDeclaration.php @@ -238,14 +238,14 @@ public function setTaxFileNumber($value){ } /** - * @return string + * @return string[] */ public function getAustralianResidentForTaxPurposes(){ return $this->_data['AustralianResidentForTaxPurposes']; } /** - * @param string[] $value + * @param string $value * @return TaxDeclaration */ public function addAustralianResidentForTaxPurpose($value){ diff --git a/src/XeroPHP/Models/PayrollAU/LeaveApplication.php b/src/XeroPHP/Models/PayrollAU/LeaveApplication.php index b6539bce..78acea61 100644 --- a/src/XeroPHP/Models/PayrollAU/LeaveApplication.php +++ b/src/XeroPHP/Models/PayrollAU/LeaveApplication.php @@ -231,14 +231,14 @@ public function setDescription($value){ } /** - * @return LeavePeriod + * @return LeavePeriod[] */ public function getLeavePeriods(){ return $this->_data['LeavePeriods']; } /** - * @param LeavePeriod[] $value + * @param LeavePeriod $value * @return LeaveApplication */ public function addLeavePeriod(LeavePeriod $value){ diff --git a/src/XeroPHP/Models/PayrollAU/LeaveApplication/LeavePeriod.php b/src/XeroPHP/Models/PayrollAU/LeaveApplication/LeavePeriod.php index d2b091c8..2fdbb6e2 100644 --- a/src/XeroPHP/Models/PayrollAU/LeaveApplication/LeavePeriod.php +++ b/src/XeroPHP/Models/PayrollAU/LeaveApplication/LeavePeriod.php @@ -102,14 +102,14 @@ public static function getProperties(){ /** - * @return string + * @return string[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param string[] $value + * @param string $value * @return LeavePeriod */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/PayItem.php b/src/XeroPHP/Models/PayrollAU/PayItem.php index d54b48dc..d3304cc9 100644 --- a/src/XeroPHP/Models/PayrollAU/PayItem.php +++ b/src/XeroPHP/Models/PayrollAU/PayItem.php @@ -108,14 +108,14 @@ public static function getProperties(){ /** - * @return EarningsRate + * @return EarningsRate[] */ public function getEarningsRates(){ return $this->_data['EarningsRates']; } /** - * @param EarningsRate[] $value + * @param EarningsRate $value * @return PayItem */ public function addEarningsRate(EarningsRate $value){ @@ -125,14 +125,14 @@ public function addEarningsRate(EarningsRate $value){ } /** - * @return DeductionType + * @return DeductionType[] */ public function getDeductionTypes(){ return $this->_data['DeductionTypes']; } /** - * @param DeductionType[] $value + * @param DeductionType $value * @return PayItem */ public function addDeductionType(DeductionType $value){ @@ -142,14 +142,14 @@ public function addDeductionType(DeductionType $value){ } /** - * @return LeaveType + * @return LeaveType[] */ public function getLeaveTypes(){ return $this->_data['LeaveTypes']; } /** - * @param LeaveType[] $value + * @param LeaveType $value * @return PayItem */ public function addLeaveType(LeaveType $value){ @@ -159,14 +159,14 @@ public function addLeaveType(LeaveType $value){ } /** - * @return ReimbursementType + * @return ReimbursementType[] */ public function getReimbursementTypes(){ return $this->_data['ReimbursementTypes']; } /** - * @param ReimbursementType[] $value + * @param ReimbursementType $value * @return PayItem */ public function addReimbursementType(ReimbursementType $value){ diff --git a/src/XeroPHP/Models/PayrollAU/PayItem/EarningsRate.php b/src/XeroPHP/Models/PayrollAU/PayItem/EarningsRate.php index e73dd03f..acade877 100644 --- a/src/XeroPHP/Models/PayrollAU/PayItem/EarningsRate.php +++ b/src/XeroPHP/Models/PayrollAU/PayItem/EarningsRate.php @@ -228,14 +228,14 @@ public function setAccountCode($value){ } /** - * @return string + * @return string[] */ public function getTypeOfUnits(){ return $this->_data['TypeOfUnits']; } /** - * @param string[] $value + * @param string $value * @return EarningsRate */ public function addTypeOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/PayItem/LeaveType.php b/src/XeroPHP/Models/PayrollAU/PayItem/LeaveType.php index 16f9ad2f..43269cf7 100644 --- a/src/XeroPHP/Models/PayrollAU/PayItem/LeaveType.php +++ b/src/XeroPHP/Models/PayrollAU/PayItem/LeaveType.php @@ -142,14 +142,14 @@ public function setName($value){ } /** - * @return float + * @return float[] */ public function getTypeOfUnits(){ return $this->_data['TypeOfUnits']; } /** - * @param float[] $value + * @param float $value * @return LeaveType */ public function addTypeOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/PayRun.php b/src/XeroPHP/Models/PayrollAU/PayRun.php index bd82acf1..430636a4 100644 --- a/src/XeroPHP/Models/PayrollAU/PayRun.php +++ b/src/XeroPHP/Models/PayrollAU/PayRun.php @@ -293,14 +293,14 @@ public function setPayslipMessage($value){ } /** - * @return Payslip + * @return Payslip[] */ public function getPayslips(){ return $this->_data['Payslips']; } /** - * @param Payslip[] $value + * @param Payslip $value * @return PayRun */ public function addPayslip(Payslip $value){ @@ -310,14 +310,14 @@ public function addPayslip(Payslip $value){ } /** - * @return string + * @return string[] */ public function getWages(){ return $this->_data['Wages']; } /** - * @param string[] $value + * @param string $value * @return PayRun */ public function addWage($value){ @@ -327,14 +327,14 @@ public function addWage($value){ } /** - * @return string + * @return string[] */ public function getDeductions(){ return $this->_data['Deductions']; } /** - * @param string[] $value + * @param string $value * @return PayRun */ public function addDeduction($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Payslip.php b/src/XeroPHP/Models/PayrollAU/Payslip.php index e57a980a..7f21e036 100644 --- a/src/XeroPHP/Models/PayrollAU/Payslip.php +++ b/src/XeroPHP/Models/PayrollAU/Payslip.php @@ -258,14 +258,14 @@ public function setPayslipID($value){ } /** - * @return EarningsLine + * @return EarningsLine[] */ public function getEarningsLines(){ return $this->_data['EarningsLines']; } /** - * @param EarningsLine[] $value + * @param EarningsLine $value * @return Payslip */ public function addEarningsLine(EarningsLine $value){ @@ -275,14 +275,14 @@ public function addEarningsLine(EarningsLine $value){ } /** - * @return TimesheetEarningsLine + * @return TimesheetEarningsLine[] */ public function getTimesheetEarningsLines(){ return $this->_data['TimesheetEarningsLines']; } /** - * @param TimesheetEarningsLine[] $value + * @param TimesheetEarningsLine $value * @return Payslip */ public function addTimesheetEarningsLine(TimesheetEarningsLine $value){ @@ -292,14 +292,14 @@ public function addTimesheetEarningsLine(TimesheetEarningsLine $value){ } /** - * @return DeductionLine + * @return DeductionLine[] */ public function getDeductionLines(){ return $this->_data['DeductionLines']; } /** - * @param DeductionLine[] $value + * @param DeductionLine $value * @return Payslip */ public function addDeductionLine(DeductionLine $value){ @@ -309,14 +309,14 @@ public function addDeductionLine(DeductionLine $value){ } /** - * @return LeaveAccrualLine + * @return LeaveAccrualLine[] */ public function getLeaveAccrualLines(){ return $this->_data['LeaveAccrualLines']; } /** - * @param LeaveAccrualLine[] $value + * @param LeaveAccrualLine $value * @return Payslip */ public function addLeaveAccrualLine(LeaveAccrualLine $value){ @@ -326,14 +326,14 @@ public function addLeaveAccrualLine(LeaveAccrualLine $value){ } /** - * @return ReimbursementLine + * @return ReimbursementLine[] */ public function getReimbursementLines(){ return $this->_data['ReimbursementLines']; } /** - * @param ReimbursementLine[] $value + * @param ReimbursementLine $value * @return Payslip */ public function addReimbursementLine(ReimbursementLine $value){ @@ -343,14 +343,14 @@ public function addReimbursementLine(ReimbursementLine $value){ } /** - * @return SuperannuationLine + * @return SuperannuationLine[] */ public function getSuperannuationLines(){ return $this->_data['SuperannuationLines']; } /** - * @param SuperannuationLine[] $value + * @param SuperannuationLine $value * @return Payslip */ public function addSuperannuationLine(SuperannuationLine $value){ @@ -360,14 +360,14 @@ public function addSuperannuationLine(SuperannuationLine $value){ } /** - * @return TaxLine + * @return TaxLine[] */ public function getTaxLines(){ return $this->_data['TaxLines']; } /** - * @param TaxLine[] $value + * @param TaxLine $value * @return Payslip */ public function addTaxLine(TaxLine $value){ @@ -445,14 +445,14 @@ public function setLastEdited($value){ } /** - * @return float + * @return float[] */ public function getWages(){ return $this->_data['Wages']; } /** - * @param float[] $value + * @param float $value * @return Payslip */ public function addWage($value){ @@ -462,14 +462,14 @@ public function addWage($value){ } /** - * @return float + * @return float[] */ public function getDeductions(){ return $this->_data['Deductions']; } /** - * @param float[] $value + * @param float $value * @return Payslip */ public function addDeduction($value){ @@ -530,14 +530,14 @@ public function setSuper($value){ } /** - * @return float + * @return float[] */ public function getReimbursements(){ return $this->_data['Reimbursements']; } /** - * @param float[] $value + * @param float $value * @return Payslip */ public function addReimbursement($value){ @@ -547,14 +547,14 @@ public function addReimbursement($value){ } /** - * @return LeaveEarningsLine + * @return LeaveEarningsLine[] */ public function getLeaveEarningsLines(){ return $this->_data['LeaveEarningsLines']; } /** - * @param LeaveEarningsLine[] $value + * @param LeaveEarningsLine $value * @return Payslip */ public function addLeaveEarningsLine(LeaveEarningsLine $value){ diff --git a/src/XeroPHP/Models/PayrollAU/Payslip/DeductionLine.php b/src/XeroPHP/Models/PayrollAU/Payslip/DeductionLine.php index a697a6c5..a98406e6 100644 --- a/src/XeroPHP/Models/PayrollAU/Payslip/DeductionLine.php +++ b/src/XeroPHP/Models/PayrollAU/Payslip/DeductionLine.php @@ -153,14 +153,14 @@ public function setPercentage($value){ } /** - * @return float + * @return float[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param float[] $value + * @param float $value * @return DeductionLine */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Payslip/EarningsLine.php b/src/XeroPHP/Models/PayrollAU/Payslip/EarningsLine.php index 09da57cb..d57425a9 100644 --- a/src/XeroPHP/Models/PayrollAU/Payslip/EarningsLine.php +++ b/src/XeroPHP/Models/PayrollAU/Payslip/EarningsLine.php @@ -136,14 +136,14 @@ public function setRatePerUnit($value){ } /** - * @return float + * @return float[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param float[] $value + * @param float $value * @return EarningsLine */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Payslip/LeaveAccrualLine.php b/src/XeroPHP/Models/PayrollAU/Payslip/LeaveAccrualLine.php index 0b67395d..2fb947fd 100644 --- a/src/XeroPHP/Models/PayrollAU/Payslip/LeaveAccrualLine.php +++ b/src/XeroPHP/Models/PayrollAU/Payslip/LeaveAccrualLine.php @@ -112,14 +112,14 @@ public function setLeaveTypeID($value){ } /** - * @return string + * @return string[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param string[] $value + * @param string $value * @return LeaveAccrualLine */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Payslip/LeaveEarningsLine.php b/src/XeroPHP/Models/PayrollAU/Payslip/LeaveEarningsLine.php index ea9b91c8..67ace548 100644 --- a/src/XeroPHP/Models/PayrollAU/Payslip/LeaveEarningsLine.php +++ b/src/XeroPHP/Models/PayrollAU/Payslip/LeaveEarningsLine.php @@ -129,14 +129,14 @@ public function setRatePerUnit($value){ } /** - * @return float + * @return float[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param float[] $value + * @param float $value * @return LeaveEarningsLine */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Payslip/SuperannuationLine.php b/src/XeroPHP/Models/PayrollAU/Payslip/SuperannuationLine.php index b216a1c8..884b8c3e 100644 --- a/src/XeroPHP/Models/PayrollAU/Payslip/SuperannuationLine.php +++ b/src/XeroPHP/Models/PayrollAU/Payslip/SuperannuationLine.php @@ -188,14 +188,14 @@ public function setCalculationType($value){ } /** - * @return string + * @return string[] */ public function getMinimumMonthlyEarnings(){ return $this->_data['MinimumMonthlyEarnings']; } /** - * @param string[] $value + * @param string $value * @return SuperannuationLine */ public function addMinimumMonthlyEarning($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Setting.php b/src/XeroPHP/Models/PayrollAU/Setting.php index e7ff5c2d..c1c3b0d7 100644 --- a/src/XeroPHP/Models/PayrollAU/Setting.php +++ b/src/XeroPHP/Models/PayrollAU/Setting.php @@ -99,14 +99,14 @@ public static function getProperties(){ /** - * @return Account + * @return Account[] */ public function getAccounts(){ return $this->_data['Accounts']; } /** - * @param Account[] $value + * @param Account $value * @return Setting */ public function addAccount(Account $value){ @@ -116,14 +116,14 @@ public function addAccount(Account $value){ } /** - * @return TrackingCategory + * @return TrackingCategory[] */ public function getTrackingCategories(){ return $this->_data['TrackingCategories']; } /** - * @param TrackingCategory[] $value + * @param TrackingCategory $value * @return Setting */ public function addTrackingCategory(TrackingCategory $value){ diff --git a/src/XeroPHP/Models/PayrollAU/Timesheet.php b/src/XeroPHP/Models/PayrollAU/Timesheet.php index 2554132c..fcbeaa3c 100644 --- a/src/XeroPHP/Models/PayrollAU/Timesheet.php +++ b/src/XeroPHP/Models/PayrollAU/Timesheet.php @@ -181,14 +181,14 @@ public function setEndDate(\DateTime $value){ } /** - * @return TimesheetLine + * @return TimesheetLine[] */ public function getTimesheetLines(){ return $this->_data['TimesheetLines']; } /** - * @param TimesheetLine[] $value + * @param TimesheetLine $value * @return Timesheet */ public function addTimesheetLine(TimesheetLine $value){ @@ -215,14 +215,14 @@ public function setStatus($value){ } /** - * @return string + * @return string[] */ public function getHours(){ return $this->_data['Hours']; } /** - * @param string[] $value + * @param string $value * @return Timesheet */ public function addHour($value){ diff --git a/src/XeroPHP/Models/PayrollAU/Timesheet/TimesheetLine.php b/src/XeroPHP/Models/PayrollAU/Timesheet/TimesheetLine.php index 14aa7e26..a511e4d3 100644 --- a/src/XeroPHP/Models/PayrollAU/Timesheet/TimesheetLine.php +++ b/src/XeroPHP/Models/PayrollAU/Timesheet/TimesheetLine.php @@ -130,14 +130,14 @@ public function setTrackingItemID($value){ } /** - * @return string + * @return string[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param string[] $value + * @param string $value * @return TimesheetLine */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollUS/Employee.php b/src/XeroPHP/Models/PayrollUS/Employee.php index 8ff16c9a..76997c73 100644 --- a/src/XeroPHP/Models/PayrollUS/Employee.php +++ b/src/XeroPHP/Models/PayrollUS/Employee.php @@ -340,14 +340,14 @@ public function setHomeAddress(HomeAddress $value){ } /** - * @return string + * @return string[] */ public function getMiddleNames(){ return $this->_data['MiddleNames']; } /** - * @param string[] $value + * @param string $value * @return Employee */ public function addMiddleName($value){ @@ -595,14 +595,14 @@ public function setIsAuthorisedToApproveTimesheet($value){ } /** - * @return SalaryAndWage + * @return SalaryAndWage[] */ public function getSalaryAndWages(){ return $this->_data['SalaryAndWages']; } /** - * @param SalaryAndWage[] $value + * @param SalaryAndWage $value * @return Employee */ public function addSalaryAndWage(SalaryAndWage $value){ @@ -612,14 +612,14 @@ public function addSalaryAndWage(SalaryAndWage $value){ } /** - * @return WorkLocation + * @return WorkLocation[] */ public function getWorkLocations(){ return $this->_data['WorkLocations']; } /** - * @param WorkLocation[] $value + * @param WorkLocation $value * @return Employee */ public function addWorkLocation(WorkLocation $value){ @@ -663,14 +663,14 @@ public function setPayTemplate(PayTemplate $value){ } /** - * @return OpeningBalance + * @return OpeningBalance[] */ public function getOpeningBalances(){ return $this->_data['OpeningBalances']; } /** - * @param OpeningBalance[] $value + * @param OpeningBalance $value * @return Employee */ public function addOpeningBalance(OpeningBalance $value){ diff --git a/src/XeroPHP/Models/PayrollUS/Employee/OpeningBalance.php b/src/XeroPHP/Models/PayrollUS/Employee/OpeningBalance.php index 7925069c..177dc490 100644 --- a/src/XeroPHP/Models/PayrollUS/Employee/OpeningBalance.php +++ b/src/XeroPHP/Models/PayrollUS/Employee/OpeningBalance.php @@ -166,14 +166,14 @@ public static function getProperties(){ /** - * @return EarningsLine + * @return EarningsLine[] */ public function getEarningsLines(){ return $this->_data['EarningsLines']; } /** - * @param EarningsLine[] $value + * @param EarningsLine $value * @return OpeningBalance */ public function addEarningsLine(EarningsLine $value){ @@ -183,14 +183,14 @@ public function addEarningsLine(EarningsLine $value){ } /** - * @return BenefitLine + * @return BenefitLine[] */ public function getBenefitLines(){ return $this->_data['BenefitLines']; } /** - * @param BenefitLine[] $value + * @param BenefitLine $value * @return OpeningBalance */ public function addBenefitLine(BenefitLine $value){ @@ -200,14 +200,14 @@ public function addBenefitLine(BenefitLine $value){ } /** - * @return DeductionLine + * @return DeductionLine[] */ public function getDeductionLines(){ return $this->_data['DeductionLines']; } /** - * @param DeductionLine[] $value + * @param DeductionLine $value * @return OpeningBalance */ public function addDeductionLine(DeductionLine $value){ @@ -217,14 +217,14 @@ public function addDeductionLine(DeductionLine $value){ } /** - * @return ReimbursementLine + * @return ReimbursementLine[] */ public function getReimbursementLines(){ return $this->_data['ReimbursementLines']; } /** - * @param ReimbursementLine[] $value + * @param ReimbursementLine $value * @return OpeningBalance */ public function addReimbursementLine(ReimbursementLine $value){ diff --git a/src/XeroPHP/Models/PayrollUS/Employee/PayTemplate.php b/src/XeroPHP/Models/PayrollUS/Employee/PayTemplate.php index b061afc5..0bbd5bfb 100644 --- a/src/XeroPHP/Models/PayrollUS/Employee/PayTemplate.php +++ b/src/XeroPHP/Models/PayrollUS/Employee/PayTemplate.php @@ -189,14 +189,14 @@ public static function getProperties(){ /** - * @return float + * @return float[] */ public function getEarningsLines(){ return $this->_data['EarningsLines']; } /** - * @param float[] $value + * @param float $value * @return PayTemplate */ public function addEarningsLine($value){ @@ -206,14 +206,14 @@ public function addEarningsLine($value){ } /** - * @return DeductionLine + * @return DeductionLine[] */ public function getDeductionLines(){ return $this->_data['DeductionLines']; } /** - * @param DeductionLine[] $value + * @param DeductionLine $value * @return PayTemplate */ public function addDeductionLine(DeductionLine $value){ @@ -223,14 +223,14 @@ public function addDeductionLine(DeductionLine $value){ } /** - * @return ReimbursementLine + * @return ReimbursementLine[] */ public function getReimbursementLines(){ return $this->_data['ReimbursementLines']; } /** - * @param ReimbursementLine[] $value + * @param ReimbursementLine $value * @return PayTemplate */ public function addReimbursementLine(ReimbursementLine $value){ @@ -240,14 +240,14 @@ public function addReimbursementLine(ReimbursementLine $value){ } /** - * @return BenefitLine + * @return BenefitLine[] */ public function getBenefitLines(){ return $this->_data['BenefitLines']; } /** - * @param BenefitLine[] $value + * @param BenefitLine $value * @return PayTemplate */ public function addBenefitLine(BenefitLine $value){ @@ -274,14 +274,14 @@ public function setEarningsTypeID($value){ } /** - * @return string + * @return string[] */ public function getUnitsOrHours(){ return $this->_data['UnitsOrHours']; } /** - * @param string[] $value + * @param string $value * @return PayTemplate */ public function addUnitsOrHour($value){ diff --git a/src/XeroPHP/Models/PayrollUS/PayItem.php b/src/XeroPHP/Models/PayrollUS/PayItem.php index e6eddf85..a643ac10 100644 --- a/src/XeroPHP/Models/PayrollUS/PayItem.php +++ b/src/XeroPHP/Models/PayrollUS/PayItem.php @@ -116,14 +116,14 @@ public static function getProperties(){ /** - * @return EarningsType + * @return EarningsType[] */ public function getEarningsTypes(){ return $this->_data['EarningsTypes']; } /** - * @param EarningsType[] $value + * @param EarningsType $value * @return PayItem */ public function addEarningsType(EarningsType $value){ @@ -133,14 +133,14 @@ public function addEarningsType(EarningsType $value){ } /** - * @return BenefitType + * @return BenefitType[] */ public function getBenefitTypes(){ return $this->_data['BenefitTypes']; } /** - * @param BenefitType[] $value + * @param BenefitType $value * @return PayItem */ public function addBenefitType(BenefitType $value){ @@ -150,14 +150,14 @@ public function addBenefitType(BenefitType $value){ } /** - * @return DeductionType + * @return DeductionType[] */ public function getDeductionTypes(){ return $this->_data['DeductionTypes']; } /** - * @param DeductionType[] $value + * @param DeductionType $value * @return PayItem */ public function addDeductionType(DeductionType $value){ @@ -167,14 +167,14 @@ public function addDeductionType(DeductionType $value){ } /** - * @return ReimbursementType + * @return ReimbursementType[] */ public function getReimbursementTypes(){ return $this->_data['ReimbursementTypes']; } /** - * @param ReimbursementType[] $value + * @param ReimbursementType $value * @return PayItem */ public function addReimbursementType(ReimbursementType $value){ @@ -184,14 +184,14 @@ public function addReimbursementType(ReimbursementType $value){ } /** - * @return TimeOffType + * @return TimeOffType[] */ public function getTimeOffTypes(){ return $this->_data['TimeOffTypes']; } /** - * @param TimeOffType[] $value + * @param TimeOffType $value * @return PayItem */ public function addTimeOffType(TimeOffType $value){ diff --git a/src/XeroPHP/Models/PayrollUS/PayRun.php b/src/XeroPHP/Models/PayrollUS/PayRun.php index 15954260..c12f4157 100644 --- a/src/XeroPHP/Models/PayrollUS/PayRun.php +++ b/src/XeroPHP/Models/PayrollUS/PayRun.php @@ -262,14 +262,14 @@ public function setPaymentDate(\DateTime $value){ } /** - * @return string + * @return string[] */ public function getEarnings(){ return $this->_data['Earnings']; } /** - * @param string[] $value + * @param string $value * @return PayRun */ public function addEarning($value){ @@ -279,14 +279,14 @@ public function addEarning($value){ } /** - * @return string + * @return string[] */ public function getDeductions(){ return $this->_data['Deductions']; } /** - * @param string[] $value + * @param string $value * @return PayRun */ public function addDeduction($value){ @@ -347,14 +347,14 @@ public function setUpdateDateUTC(\DateTime $value){ } /** - * @return string + * @return string[] */ public function getPayStubs(){ return $this->_data['PayStubs']; } /** - * @param string[] $value + * @param string $value * @return PayRun */ public function addPayStub($value){ diff --git a/src/XeroPHP/Models/PayrollUS/Paystub.php b/src/XeroPHP/Models/PayrollUS/Paystub.php index 0d9151a9..21929d3c 100644 --- a/src/XeroPHP/Models/PayrollUS/Paystub.php +++ b/src/XeroPHP/Models/PayrollUS/Paystub.php @@ -318,14 +318,14 @@ public function setLastEdited($value){ } /** - * @return float + * @return float[] */ public function getEarnings(){ return $this->_data['Earnings']; } /** - * @param float[] $value + * @param float $value * @return Paystub */ public function addEarning($value){ @@ -335,14 +335,14 @@ public function addEarning($value){ } /** - * @return float + * @return float[] */ public function getDeductions(){ return $this->_data['Deductions']; } /** - * @param float[] $value + * @param float $value * @return Paystub */ public function addDeduction($value){ @@ -369,14 +369,14 @@ public function setTax($value){ } /** - * @return float + * @return float[] */ public function getReimbursements(){ return $this->_data['Reimbursements']; } /** - * @param float[] $value + * @param float $value * @return Paystub */ public function addReimbursement($value){ @@ -420,14 +420,14 @@ public function setUpdatedDateUTC($value){ } /** - * @return EarningsLine + * @return EarningsLine[] */ public function getEarningsLines(){ return $this->_data['EarningsLines']; } /** - * @param EarningsLine[] $value + * @param EarningsLine $value * @return Paystub */ public function addEarningsLine(EarningsLine $value){ @@ -437,14 +437,14 @@ public function addEarningsLine(EarningsLine $value){ } /** - * @return LeaveEarningsLine + * @return LeaveEarningsLine[] */ public function getLeaveEarningsLines(){ return $this->_data['LeaveEarningsLines']; } /** - * @param LeaveEarningsLine[] $value + * @param LeaveEarningsLine $value * @return Paystub */ public function addLeaveEarningsLine(LeaveEarningsLine $value){ @@ -454,14 +454,14 @@ public function addLeaveEarningsLine(LeaveEarningsLine $value){ } /** - * @return TimesheetEarningsLine + * @return TimesheetEarningsLine[] */ public function getTimesheetEarningsLines(){ return $this->_data['TimesheetEarningsLines']; } /** - * @param TimesheetEarningsLine[] $value + * @param TimesheetEarningsLine $value * @return Paystub */ public function addTimesheetEarningsLine(TimesheetEarningsLine $value){ @@ -471,14 +471,14 @@ public function addTimesheetEarningsLine(TimesheetEarningsLine $value){ } /** - * @return DeductionLine + * @return DeductionLine[] */ public function getDeductionLines(){ return $this->_data['DeductionLines']; } /** - * @param DeductionLine[] $value + * @param DeductionLine $value * @return Paystub */ public function addDeductionLine(DeductionLine $value){ @@ -488,14 +488,14 @@ public function addDeductionLine(DeductionLine $value){ } /** - * @return ReimbursementLine + * @return ReimbursementLine[] */ public function getReimbursementLines(){ return $this->_data['ReimbursementLines']; } /** - * @param ReimbursementLine[] $value + * @param ReimbursementLine $value * @return Paystub */ public function addReimbursementLine(ReimbursementLine $value){ @@ -505,14 +505,14 @@ public function addReimbursementLine(ReimbursementLine $value){ } /** - * @return BenefitLine + * @return BenefitLine[] */ public function getBenefitLines(){ return $this->_data['BenefitLines']; } /** - * @param BenefitLine[] $value + * @param BenefitLine $value * @return Paystub */ public function addBenefitLine(BenefitLine $value){ @@ -522,14 +522,14 @@ public function addBenefitLine(BenefitLine $value){ } /** - * @return TimeOffLine + * @return TimeOffLine[] */ public function getTimeOffLines(){ return $this->_data['TimeOffLines']; } /** - * @param TimeOffLine[] $value + * @param TimeOffLine $value * @return Paystub */ public function addTimeOffLine(TimeOffLine $value){ diff --git a/src/XeroPHP/Models/PayrollUS/Paystub/EarningsLine.php b/src/XeroPHP/Models/PayrollUS/Paystub/EarningsLine.php index e9de206a..56b93ce8 100644 --- a/src/XeroPHP/Models/PayrollUS/Paystub/EarningsLine.php +++ b/src/XeroPHP/Models/PayrollUS/Paystub/EarningsLine.php @@ -129,14 +129,14 @@ public function setRatePerUnit($value){ } /** - * @return float + * @return float[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param float[] $value + * @param float $value * @return EarningsLine */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollUS/Paystub/LeaveEarningsLine.php b/src/XeroPHP/Models/PayrollUS/Paystub/LeaveEarningsLine.php index a3c6590e..1ed3e281 100644 --- a/src/XeroPHP/Models/PayrollUS/Paystub/LeaveEarningsLine.php +++ b/src/XeroPHP/Models/PayrollUS/Paystub/LeaveEarningsLine.php @@ -129,14 +129,14 @@ public function setRatePerUnit($value){ } /** - * @return float + * @return float[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param float[] $value + * @param float $value * @return LeaveEarningsLine */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollUS/Paystub/TimeOffLine.php b/src/XeroPHP/Models/PayrollUS/Paystub/TimeOffLine.php index caa13a5e..c2435f19 100644 --- a/src/XeroPHP/Models/PayrollUS/Paystub/TimeOffLine.php +++ b/src/XeroPHP/Models/PayrollUS/Paystub/TimeOffLine.php @@ -112,14 +112,14 @@ public function setTimeOffTypeID($value){ } /** - * @return string + * @return string[] */ public function getHours(){ return $this->_data['Hours']; } /** - * @param string[] $value + * @param string $value * @return TimeOffLine */ public function addHour($value){ diff --git a/src/XeroPHP/Models/PayrollUS/Paystub/TimesheetEarningsLine.php b/src/XeroPHP/Models/PayrollUS/Paystub/TimesheetEarningsLine.php index 792e756d..514a1243 100644 --- a/src/XeroPHP/Models/PayrollUS/Paystub/TimesheetEarningsLine.php +++ b/src/XeroPHP/Models/PayrollUS/Paystub/TimesheetEarningsLine.php @@ -129,14 +129,14 @@ public function setRatePerUnit($value){ } /** - * @return float + * @return float[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param float[] $value + * @param float $value * @return TimesheetEarningsLine */ public function addNumberOfUnit($value){ diff --git a/src/XeroPHP/Models/PayrollUS/Setting.php b/src/XeroPHP/Models/PayrollUS/Setting.php index 1a424d28..dd6239b2 100644 --- a/src/XeroPHP/Models/PayrollUS/Setting.php +++ b/src/XeroPHP/Models/PayrollUS/Setting.php @@ -91,14 +91,14 @@ public static function getProperties(){ /** - * @return Account + * @return Account[] */ public function getAccounts(){ return $this->_data['Accounts']; } /** - * @param Account[] $value + * @param Account $value * @return Setting */ public function addAccount(Account $value){ @@ -108,14 +108,14 @@ public function addAccount(Account $value){ } /** - * @return TrackingCategory + * @return TrackingCategory[] */ public function getTrackingCategories(){ return $this->_data['TrackingCategories']; } /** - * @param TrackingCategory[] $value + * @param TrackingCategory $value * @return Setting */ public function addTrackingCategory(TrackingCategory $value){ diff --git a/src/XeroPHP/Models/PayrollUS/Timesheet.php b/src/XeroPHP/Models/PayrollUS/Timesheet.php index c3dc89aa..01f37aa1 100644 --- a/src/XeroPHP/Models/PayrollUS/Timesheet.php +++ b/src/XeroPHP/Models/PayrollUS/Timesheet.php @@ -181,14 +181,14 @@ public function setEndDate(\DateTime $value){ } /** - * @return TimesheetLine + * @return TimesheetLine[] */ public function getTimesheetLines(){ return $this->_data['TimesheetLines']; } /** - * @param TimesheetLine[] $value + * @param TimesheetLine $value * @return Timesheet */ public function addTimesheetLine(TimesheetLine $value){ @@ -232,14 +232,14 @@ public function setTimesheetID($value){ } /** - * @return string + * @return string[] */ public function getHours(){ return $this->_data['Hours']; } /** - * @param string[] $value + * @param string $value * @return Timesheet */ public function addHour($value){ diff --git a/src/XeroPHP/Models/PayrollUS/Timesheet/TimesheetLine.php b/src/XeroPHP/Models/PayrollUS/Timesheet/TimesheetLine.php index 73962ed5..38f7e790 100644 --- a/src/XeroPHP/Models/PayrollUS/Timesheet/TimesheetLine.php +++ b/src/XeroPHP/Models/PayrollUS/Timesheet/TimesheetLine.php @@ -130,14 +130,14 @@ public function setTrackingItemID($value){ } /** - * @return string + * @return string[] */ public function getNumberOfUnits(){ return $this->_data['NumberOfUnits']; } /** - * @param string[] $value + * @param string $value * @return TimesheetLine */ public function addNumberOfUnit($value){