CoolCMS API

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

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|null
On this page

Search results