CollectionTaxes
Trait to fetch taxes from an ItemPriceCollection
Table of Contents
Methods
| getTaxes() | Retrieves the taxes for all items in the collection |
Methods
getTaxes()
Retrieves the taxes for all items in the collection
protected
getTaxes(ItemPriceCollection $collection) : array<string|int, mixed>
Parameters
- $collection : ItemPriceCollection
-
The collection from which to fetch all taxes
Return values
array<string|int, mixed> —An array of stdClass objects representing each tax, including:
- description The tax description
- amount The tax amount
- type The tax type
- total The total amount actually taxed