TaxCategoryResolver - trickscompany/sylius-odoo-product-plugin GitHub Wiki


TaxCategoryResolver

Properties

taxCategoryRepository

private \Sylius\Component\Taxation\Repository\TaxCategoryRepositoryInterface $taxCategoryRepository

taxCategoryFactory

private \Sylius\Component\Resource\Factory\FactoryInterface $taxCategoryFactory

Methods

__construct

public __construct(\Sylius\Component\Taxation\Repository\TaxCategoryRepositoryInterface $taxCategoryRepository, \Sylius\Component\Resource\Factory\FactoryInterface $taxCategoryFactory): mixed

Parameters:

Parameter Type Description
$taxCategoryRepository \Sylius\Component\Taxation\Repository\TaxCategoryRepositoryInterface
$taxCategoryFactory \Sylius\Component\Resource\Factory\FactoryInterface

resolveByTax

public resolveByTax(\Fabit\SyliusOdooProductPlugin\Model\Data $taxData): \Sylius\Component\Taxation\Model\TaxCategoryInterface

Parameters:

Parameter Type Description
$taxData \Fabit\SyliusOdooProductPlugin\Model\Data

resolveByProduct

public resolveByProduct(\Sylius\Component\Core\Model\ProductInterface $syliusProduct, \Fabit\SyliusOdooProductPlugin\Model\Product $product): ?\Sylius\Component\Taxation\Model\TaxCategoryInterface

Parameters:

Parameter Type Description
$syliusProduct \Sylius\Component\Core\Model\ProductInterface
$product \Fabit\SyliusOdooProductPlugin\Model\Product


Automatically generated on 2024-02-03

⚠️ **GitHub.com Fallback** ⚠️