class TaxManager extends TranslatableManager implements BasicEntityManagerInterface

Class TaxManager is injected as alligator.tax_manager service. TaxManager handles the logic for managed entity.

Properties

protected TaxRepository $repository

Methods

setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

setRepository(mixed $repository)

No description

mixed
getLanguagesForIds(array $ids)

No description

__construct(TaxRepository $repository)

TaxManager constructor.

Tax
saveTax(Tax $tax)

Persist new tax

Tax
getCurrentTax()

Find default tax

mixed
getLastWithSelect()

Find id, name and ration of default tax

Details

in TranslatableManager at line 30
setRepositoryLocale(ContainerInterface|null $container)

Sets the repository request default locale

Parameters

ContainerInterface|null $container

Exceptions

InvalidArgumentException if repository is not an instance of TranslatableRepository

in TranslatableManager at line 63
setRepository(mixed $repository)

Parameters

mixed $repository

in TranslatableManager at line 73
mixed getLanguagesForIds(array $ids)

Parameters

array $ids

Return Value

mixed

at line 33
__construct(TaxRepository $repository)

TaxManager constructor.

Parameters

TaxRepository $repository

at line 46
Tax saveTax(Tax $tax)

Persist new tax

Parameters

Tax $tax

Return Value

Tax

Exceptions

Exception

at line 56
Tax getCurrentTax()

Find default tax

Return Value

Tax

at line 65
mixed getLastWithSelect()

Find id, name and ration of default tax

Return Value

mixed