Skip to content

Commit

Permalink
use class FQCN to array type
Browse files Browse the repository at this point in the history
  • Loading branch information
guillaume-sainthillier committed Feb 9, 2024
1 parent fdf301a commit e45175a
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 23 deletions.
2 changes: 1 addition & 1 deletion src/Model/DocumentLineDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class DocumentLineDocument
/**
* @var Note[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\Note>')]
#[Type('array<' . Note::class . '>')]
#[XmlList(inline: true, entry: 'IncludedNote', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $notes = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Model/ExchangedDocument.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ class ExchangedDocument
/**
* @var Note[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\Note>')]
#[Type('array<' . Note::class . '>')]
#[XmlList(inline: true, entry: 'IncludedNote', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $notes = [];
}
2 changes: 1 addition & 1 deletion src/Model/HeaderTradeAgreement.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ class HeaderTradeAgreement
/**
* @var ReferencedDocument[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\ReferencedDocument>')]
#[Type('array<' . ReferencedDocument::class . '>')]
#[XmlList(inline: true, entry: 'AdditionalReferencedDocument', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $additionalReferencedDocuments = [];

Expand Down
12 changes: 6 additions & 6 deletions src/Model/HeaderTradeSettlement.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ class HeaderTradeSettlement
/**
* @var TradeSettlementPaymentMeans[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeSettlementPaymentMeans>')]
#[Type('array<' . TradeSettlementPaymentMeans::class . '>')]
#[XmlList(inline: true, entry: 'SpecifiedTradeSettlementPaymentMeans', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $specifiedTradeSettlementPaymentMeans = [];

/**
* @var TradeTax[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeTax>')]
#[Type('array<' . TradeTax::class . '>')]
#[XmlList(inline: true, entry: 'ApplicableTradeTax', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $tradeTaxes = [];

Expand All @@ -90,21 +90,21 @@ class HeaderTradeSettlement
/**
* @var TradeAllowanceCharge[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeAllowanceCharge>')]
#[Type('array<' . TradeAllowanceCharge::class . '>')]
#[XmlList(inline: true, entry: 'SpecifiedTradeAllowanceCharge', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $specifiedTradeAllowanceCharge = [];

/**
* @var LogisticsServiceCharge[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\LogisticsServiceCharge>')]
#[Type('array<' . LogisticsServiceCharge::class . '>')]
#[XmlList(inline: true, entry: 'SpecifiedLogisticsServiceCharge', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $specifiedLogisticsServiceCharge = [];

/**
* @var TradePaymentTerms[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradePaymentTerms>')]
#[Type('array<' . TradePaymentTerms::class . '>')]
#[XmlList(inline: true, entry: 'SpecifiedTradePaymentTerms', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $specifiedTradePaymentTerms = [];

Expand All @@ -121,7 +121,7 @@ class HeaderTradeSettlement
/**
* @var TradeAccountingAccount[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeAccountingAccount>')]
#[Type('array<' . TradeAccountingAccount::class . '>')]
#[XmlList(inline: true, entry: 'ReceivableSpecifiedTradeAccountingAccount', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $tradeAccountingAccount = [];
}
2 changes: 1 addition & 1 deletion src/Model/LineTradeAgreement.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class LineTradeAgreement
/**
* @var ReferencedDocument[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\ReferencedDocument>')]
#[Type('array<' . ReferencedDocument::class . '>')]
#[XmlList(inline: true, entry: 'AdditionalReferencedDocument', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $additionalReferencedDocuments = [];

Expand Down
6 changes: 3 additions & 3 deletions src/Model/LineTradeSettlement.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class LineTradeSettlement
/**
* @var TradeTax[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeTax>')]
#[Type('array<' . TradeTax::class . '>')]
#[XmlList(inline: true, entry: 'ApplicableTradeTax', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $tradeTax = [];

Expand All @@ -33,7 +33,7 @@ class LineTradeSettlement
/**
* @var TradeAllowanceCharge[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeAllowanceCharge>')]
#[Type('array<' . TradeAllowanceCharge::class . '>')]
#[XmlList(inline: true, entry: 'SpecifiedTradeAllowanceCharge', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $specifiedTradeAllowanceCharge = [];

Expand All @@ -45,7 +45,7 @@ class LineTradeSettlement
/**
* @var TradeAccountingAccount[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeAccountingAccount>')]
#[Type('array<' . TradeAccountingAccount::class . '>')]
#[XmlList(inline: true, entry: 'ReceivableSpecifiedTradeAccountingAccount', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $tradeAccountingAccount = [];
}
2 changes: 1 addition & 1 deletion src/Model/LogisticsServiceCharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class LogisticsServiceCharge
/**
* @var TradeTax[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeTax>')]
#[Type('array<' . TradeTax::class . '>')]
#[XmlList(inline: true, entry: 'AppliedTradeTax', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $tradeTaxes = [];
}
2 changes: 1 addition & 1 deletion src/Model/SupplyChainTradeTransaction.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class SupplyChainTradeTransaction
/**
* @var SupplyChainTradeLineItem[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\SupplyChainTradeLineItem>')]
#[Type('array<' . SupplyChainTradeLineItem::class . '>')]
#[XmlList(inline: true, entry: 'IncludedSupplyChainTradeLineItem', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $lineItems = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Model/TradeAllowanceCharge.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class TradeAllowanceCharge
/**
* @var TradeTax[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeTax>')]
#[Type('array<' . TradeTax::class . '>')]
#[XmlList(inline: true, entry: 'CategoryTradeTax', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $tradeTax = [];
}
4 changes: 2 additions & 2 deletions src/Model/TradeParty.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TradeParty
/**
* @var Id[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\Id>')]
#[Type('array<' . Id::class . '>')]
#[XmlList(inline: true, entry: 'GlobalID', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $globalID = [];

Expand Down Expand Up @@ -68,7 +68,7 @@ class TradeParty
/**
* @var TaxRegistration[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TaxRegistration>')]
#[Type('array<' . TaxRegistration::class . '>')]
#[XmlList(inline: true, entry: 'SpecifiedTaxRegistration', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public $taxRegistrations = [];
}
2 changes: 1 addition & 1 deletion src/Model/TradePrice.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class TradePrice
/**
* @var TradeAllowanceCharge[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\TradeAllowanceCharge>')]
#[Type('array<' . TradeAllowanceCharge::class . '>')]
#[XmlList(inline: true, entry: 'AppliedTradeAllowanceCharge', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $appliedTradeAllowanceCharges = [];

Expand Down
2 changes: 1 addition & 1 deletion src/Model/TradeProduct.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class TradeProduct
/**
* @var ReferencedProduct[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\ReferencedProduct>')]
#[Type('array<' . ReferencedProduct::class . '>')]
#[XmlList(inline: true, entry: 'IncludedReferencedProduct', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $includedReferencedProducts = [];
}
6 changes: 3 additions & 3 deletions src/Model/TradeSettlementHeaderMonetarySummation.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ class TradeSettlementHeaderMonetarySummation
/**
* @var Amount[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\Amount>')]
#[Type('array<' . Amount::class . '>')]
#[XmlList(inline: true, entry: 'TaxBasisTotalAmount', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $taxBasisTotalAmount = [];

/**
* @var Amount[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\Amount>')]
#[Type('array<' . Amount::class . '>')]
#[XmlList(inline: true, entry: 'TaxTotalAmount', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $taxTotalAmount = [];

Expand All @@ -55,7 +55,7 @@ class TradeSettlementHeaderMonetarySummation
/**
* @var Amount[]
*/
#[Type('array<Easybill\ZUGFeRD\Model\Amount>')]
#[Type('array<' . Amount::class . '>')]
#[XmlList(inline: true, entry: 'GrandTotalAmount', namespace: 'urn:un:unece:uncefact:data:standard:ReusableAggregateBusinessInformationEntity:100')]
public array $grandTotalAmount = [];

Expand Down

0 comments on commit e45175a

Please sign in to comment.