![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/vendor/mageworx/module-seo-ai/Model/Generators/Category/ |
<?php /** * Copyright © MageWorx. All rights reserved. * See LICENSE.txt for license details. */ declare(strict_types = 1); namespace MageWorx\SeoAI\Model\Generators\Category; use Magento\Catalog\Api\CategoryRepositoryInterface; use Magento\Catalog\Api\ProductRepositoryInterface; use MageWorx\OpenAI\Api\OptionsInterfaceFactory; use MageWorx\OpenAI\Api\RequestInterfaceFactory; use MageWorx\OpenAI\Model\Models\ModelsFactory; use MageWorx\SeoAI\Api\CategoryRequestResponseLogRepositoryInterface as LogRepository; use MageWorx\SeoAI\Api\Data\CategoryRequestResponseLogInterfaceFactory as LogFactory; use MageWorx\SeoAI\Api\GeneratorInterface; use MageWorx\SeoAI\Helper\Config as ModuleConfig; class ImproveText extends AbstractCategoryGenerator implements GeneratorInterface { public function __construct( ModelsFactory $modelsFactory, OptionsInterfaceFactory $optionsFactory, RequestInterfaceFactory $requestFactory, ProductRepositoryInterface $productRepository, CategoryRepositoryInterface $categoryRepository, LogFactory $logFactory, LogRepository $logRepository, ModuleConfig $moduleConfig, string $type = '' ) { if (!$type) { throw new \InvalidArgumentException('Type is not specified.'); } parent::__construct( $modelsFactory, $optionsFactory, $requestFactory, $productRepository, $categoryRepository, $logFactory, $logRepository, $moduleConfig ); $this->type = $type; } }