You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?php
-
- namespace domain\Config\TaxRate;
-
- use domain\_\AbstractManager;
-
- class TaxRateManager extends AbstractManager
- {
- protected TaxRateBuilder $taxRateBuilder;
-
- public function loadDependencies(): void
- {
- $this->taxRateBuilder = $this->loadService(TaxRateBuilder::class);
- }
-
- public function createTaxRate(string $name, float $value): TaxRate
- {
- $taxRate = $this->taxRateBuilder->instanciateTaxRate();
- $taxRate->setName($name);
- $taxRate->setValue($value);
- $taxRate->save();
- return $taxRate;
- }
- }
|