![]() 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/Product/ |
<?php /** * Copyright © MageWorx. All rights reserved. * See LICENSE.txt for license details. */ declare(strict_types = 1); namespace MageWorx\SeoAI\Model\Generators\Product; use Magento\Catalog\Api\CategoryRepositoryInterface; use Magento\Catalog\Api\ProductRepositoryInterface; use Magento\Framework\Pricing\Helper\Data as PricingHelper; use Magento\Store\Model\StoreManagerInterface; use MageWorx\OpenAI\Api\OptionsInterfaceFactory; use MageWorx\OpenAI\Api\RequestInterfaceFactory; use MageWorx\OpenAI\Model\Models\ModelsFactory; use MageWorx\SeoAI\Api\Data\ProductRequestResponseLogInterfaceFactory as LogFactory; use MageWorx\SeoAI\Api\GeneratorInterface; use MageWorx\SeoAI\Api\ProductRequestResponseLogRepositoryInterface as LogRepository; use MageWorx\SeoAI\Helper\Config as ModuleConfig; class ImproveText extends AbstractProductGenerator implements GeneratorInterface { public function __construct( ModelsFactory $modelsFactory, OptionsInterfaceFactory $optionsFactory, RequestInterfaceFactory $requestFactory, ProductRepositoryInterface $productRepository, CategoryRepositoryInterface $categoryRepository, LogFactory $logFactory, LogRepository $logRepository, PricingHelper $pricingHelper, ModuleConfig $moduleConfig, StoreManagerInterface $storeManager, string $type = '' ) { if (!$type) { throw new \InvalidArgumentException('Type is not specified.'); } parent::__construct( $modelsFactory, $optionsFactory, $requestFactory, $productRepository, $categoryRepository, $logFactory, $logRepository, $pricingHelper, $moduleConfig, $storeManager ); $this->type = $type; } }