TaxStatusCollectionTrait
VAT status history of a seller. Not generic on purpose: the lookup only needs the Shared base, and a third template on Seller would invalidate its whole baseline.
Table of Contents
Properties
- $taxStatuses : Collection<int, SellerTaxStatus>
Methods
- findTaxStatusOn() : SellerTaxStatus|null
- Status valid on `$date` = the row with the newest `validFrom <= date`; null = no row that early (or no history at all — tell the two apart with `getTaxStatuses()->isEmpty()`).
- getTaxStatuses() : Collection<int, SellerTaxStatus>
- setTaxStatuses() : static
- Accepts any Collection — the Api SaveTrait copies a managed PersistentCollection through the setter.
- taxStatusCollectionInit() : void
Properties
$taxStatuses
protected
Collection<int, SellerTaxStatus>
$taxStatuses
Methods
findTaxStatusOn()
Status valid on `$date` = the row with the newest `validFrom <= date`; null = no row that early (or no history at all — tell the two apart with `getTaxStatuses()->isEmpty()`).
public
findTaxStatusOn(DateTimeInterface $date) : SellerTaxStatus|null
Parameters
- $date : DateTimeInterface
Return values
SellerTaxStatus|nullgetTaxStatuses()
public
getTaxStatuses() : Collection<int, SellerTaxStatus>
Return values
Collection<int, SellerTaxStatus>setTaxStatuses()
Accepts any Collection — the Api SaveTrait copies a managed PersistentCollection through the setter.
public
setTaxStatuses(Collection<int, SellerTaxStatus>|array<int, SellerTaxStatus> $taxStatuses) : static
Parameters
- $taxStatuses : Collection<int, SellerTaxStatus>|array<int, SellerTaxStatus>
Return values
statictaxStatusCollectionInit()
public
taxStatusCollectionInit() : void