CategoryImporter - trickscompany/sylius-odoo-product-plugin GitHub Wiki
- Full name:
\Fabit\SyliusOdooProductPlugin\Importer\CategoryImporter - This class is marked as final and can't be subclassed
- This class implements:
\Fabit\SyliusOdooProductPlugin\Importer\CategoryImporterInterface - This class is a Final class
private \Sylius\Component\Taxonomy\Factory\TaxonFactoryInterface $taxonFactoryprivate \Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface $taxonRepositoryprivate \Doctrine\ORM\EntityManagerInterface $entityManagerprivate \Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface $taxonSlugGeneratorpublic \Psr\Log\LoggerInterface $loggerpublic __construct(\Sylius\Component\Taxonomy\Factory\TaxonFactoryInterface $taxonFactory, \Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface $taxonRepository, \Doctrine\ORM\EntityManagerInterface $entityManager, \Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface $taxonSlugGenerator, \Psr\Log\LoggerInterface $logger): mixedParameters:
| Parameter | Type | Description |
|---|---|---|
$taxonFactory |
\Sylius\Component\Taxonomy\Factory\TaxonFactoryInterface | |
$taxonRepository |
\Sylius\Component\Taxonomy\Repository\TaxonRepositoryInterface | |
$entityManager |
\Doctrine\ORM\EntityManagerInterface | |
$taxonSlugGenerator |
\Sylius\Component\Taxonomy\Generator\TaxonSlugGeneratorInterface | |
$logger |
\Psr\Log\LoggerInterface |
public import(array $data, string $locale): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$data |
array | |
$locale |
string |
private createTaxon(mixed $code, mixed $name, mixed $locale): \Sylius\Component\Core\Model\TaxonInterfaceParameters:
| Parameter | Type | Description |
|---|---|---|
$code |
mixed | |
$name |
mixed | |
$locale |
mixed |
private debug(string $message, array $data = [], bool $isEcho = false): voidParameters:
| Parameter | Type | Description |
|---|---|---|
$message |
string | |
$data |
array | |
$isEcho |
bool |
Automatically generated on 2024-02-03