@param \ArchitectureSniffer\Module\Transfer\ModuleTransfer $moduleTransfer

@return \ArchitectureSniffer\PropelQuery\Schema\Transfer\PropelSchemaTableTransfer[]
330801
protected function getTablesByModule(ModuleTransfer $moduleTransfer): array
    {
        $tableTransfers = [];
        $schemaPaths = $moduleTransfer->getSchemaPaths();

        foreach ($schemaPaths as $schemaPath) {
            $moduleName = $moduleTransfer->getModuleName();
            $schema = $this->reader->fromFile($schemaPath);

            $tableTransfers = $this->getTables(
                $schema,
                $moduleName,
                $tableTransfers
            );
        }

        return $tableTransfers;
    }
1081646
public function importMerchantRelationshipSalesOrderThresholds(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()->createMerchantRelationshipSalesOrderThresholdDataImport()->import($dataImporterConfigurationTransfer);
    }
1258596
public function importProductListProductConcrete(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->createProductListProductConcreteDataImport()
            ->import($dataImporterConfigurationTransfer);
    }
275528
public function getProductListCollectionByIdCompanyId(
        CompanyTransfer $companyTransfer
    ): ProductListCollectionTransfer {
        $companyTransfer->requireIdCompany();

        return $this->productListCompanyRepository
            ->getProductListCollectionByIdCompany($companyTransfer->getIdCompany());
    }
1319501
protected function getTableTransfer(array $table, string $moduleName, array $tableTransfers): array
    {
        $tableName = $table['name'];

        $transfer = $tableTransfers[$tableName] ?? new PropelSchemaTableTransfer();

        $transfer->setTableName($tableName);

        if ($this->isOwnerOfTable($table)) {
            $transfer->setModuleName($moduleName);
        }

        $transfer = $this->addPhpName($table, $transfer);
        $tableTransfers[$tableName] = $transfer;

        if (isset($table['foreign-key'])) {
            $tableTransfers = $this->addRelations($table['foreign-key'], $transfer, $tableTransfers);
        }

        return $tableTransfers;
    }
476700
public function getDataSubArray(QuoteTransfer $quoteTransfer, ComputopApiRequestTransfer $requestTransfer): array
    {
        $dataSubArray[ComputopApiConfig::MERCHANT_ID] = $requestTransfer->getMerchantId();
        $dataSubArray[ComputopApiConfig::TRANS_ID] = $requestTransfer->getTransId();
        $dataSubArray[ComputopApiConfig::ORDER_DESC] = $requestTransfer->getOrderDesc();
        $dataSubArray[ComputopApiConfig::AMOUNT] = $requestTransfer->getAmount();
        $dataSubArray[ComputopApiConfig::CURRENCY] = $requestTransfer->getCurrency();
        $dataSubArray[ComputopApiConfig::MAC] = $this->computopApiService->generateEncryptedMac($requestTransfer);
        $dataSubArray[ComputopApiConfig::PRODUCT_NAME] = $this->config->getCrifProductName();
        $dataSubArray[ComputopApiConfig::CUSTOMER_ID] = $quoteTransfer->getCustomer()->getCustomerReference();
        $dataSubArray[ComputopApiConfig::LEGAL_FORM] = $this->config->getCrifLegalForm();
        $dataSubArray[ComputopApiConfig::FIRST_NAME] = $quoteTransfer->getShippingAddress()->getFirstName();
        $dataSubArray[ComputopApiConfig::LAST_NAME] = $quoteTransfer->getShippingAddress()->getLastName();
        $dataSubArray[ComputopApiConfig::ADDRESS_STREET] = $quoteTransfer->getShippingAddress()->getAddress1();
        $dataSubArray[ComputopApiConfig::ADDRESS_STREET_NR] = $quoteTransfer->getShippingAddress()->getAddress2();
        $dataSubArray[ComputopApiConfig::ADDRESS_ADDITIONAL] = $quoteTransfer->getShippingAddress()->getAddress3();
        $dataSubArray[ComputopApiConfig::ADDRESS_CITY] = $quoteTransfer->getShippingAddress()->getCity();
        $dataSubArray[ComputopApiConfig::ADDR_ZIP] = $quoteTransfer->getShippingAddress()->getZipCode();
        $dataSubArray[ComputopApiConfig::ADDR_EMAIL] = $quoteTransfer->getCustomer()->getEmail();
        $dataSubArray[ComputopApiConfig::PHONE] = $quoteTransfer->getShippingAddress()->getPhone();

        return $dataSubArray;
    }
1214514
public function expandCustomerTransferWithProductListIds(CustomerTransfer $customerTransfer): CustomerTransfer
    {
        if ($this->hasCustomerTransferProductLists($customerTransfer)) {
            return $customerTransfer;
        }

        $companyUserTransfer = $customerTransfer->getCompanyUserTransfer();

        if ($companyUserTransfer === null || $companyUserTransfer->getCompany() === null) {
            return $customerTransfer;
        }

        $productListCollectionTransfer = $this->productListReader->getProductListCollectionByIdCompanyId(
            $companyUserTransfer->getCompany()
        );

        $this->addProductListsToCustomerTransfer($customerTransfer, $productListCollectionTransfer);

        return $customerTransfer;
    }
771832
public function expandCustomerTransferWithProductListIds(CustomerTransfer $customerTransfer): CustomerTransfer
    {
        $customerTransfer->setCustomerProductListCollection(new CustomerProductListCollectionTransfer());

        $productListCollectionTransfer = $this->productListReader->getProductListCollectionByIdCustomerId(
            $customerTransfer
        );

        $this->addProductListsToCustomerTransfer($customerTransfer, $productListCollectionTransfer);

        return $customerTransfer;
    }
73810
public function getData(AbstractTransfer $quoteTransfer): QuoteTransfer
    {
        if ($quoteTransfer->getPayment() === null) {
            $paymentTransfer = new PaymentTransfer();
            $paymentTransfer->setPayone(new PayonePaymentTransfer());
            $quoteTransfer->setPayment($paymentTransfer);
        }

        return $quoteTransfer;
    }
761485
protected function getQueryNames(array $methodTransferCollection, ClassNodeTransfer $classNodeTransfer): array
    {
        $queryNames = [];

        foreach ($methodTransferCollection as $methodTransfer) {
            $queryNames[] = $methodTransfer->getQueryNames();
        }

        $queryNames = array_merge(...$queryNames);
        $queryNames = array_unique($queryNames);
        $queryNames = array_filter($queryNames);

        return $this->getModuleNamesByQueryNames($queryNames, $classNodeTransfer);
    }
855524
protected function getRelatedCompanyIds(
        ProductListCompanyRelationTransfer $productListCompanyRelationTransfer
    ): array {
        $currentProductListCompanyRelationTransfer = $this->productListCompanyRelationReader
            ->getProductListCompanyRelation($productListCompanyRelationTransfer);

        return $currentProductListCompanyRelationTransfer->getCompanyIds();
    }
214155
public function getOptions(AbstractTransfer $quoteTransfer)
    {
        return [
            OnlineTransferSubForm::OPTION_BANK_COUNTRIES => $this->getBankCountries(),
            OnlineTransferSubForm::OPTION_BANK_GROUP_TYPES => $this->getBankGroupTypes(),
        ];
    }
500459
protected function findSchemaFiles(PropelSchemaTableTransfer $tableTransfer, PathTransfer $pathTransfer): Countable
    {
        $tableName = $tableTransfer->getTableName();

        $phpName = $tableTransfer->getPhpName() ?? str_replace('_', '', ucwords($tableName, '_'));

        $tableSearchPattern = '/<table name="%s".*phpName="(.*)%s".*?>/';
        $pattern = sprintf($tableSearchPattern, $tableName, $phpName);

        $corePropelSchemaDirectoryPattern = $pathTransfer->getCorePath() . implode(
            DIRECTORY_SEPARATOR,
            ['*', 'src', '*', '*', '*', 'Persistence', 'Propel', 'Schema']
        );
        $projectPropelSchemaDirectoryPattern = $pathTransfer->getProjectPath() . implode(
            DIRECTORY_SEPARATOR,
            ['*', 'Persistence', 'Propel', 'Schema']
        );

        $finder = $this->createFinder();

        $finder->in([
            $corePropelSchemaDirectoryPattern,
            $projectPropelSchemaDirectoryPattern,
        ])->name('*.schema.xml')->contains($pattern);

        return $finder->files();
    }
1327142
public function buildRequest(
        OrderTransfer $orderTransfer,
        ComputopApiHeaderPaymentTransfer $computopApiHeaderPayment
    ): array {
        $encryptedArray = $this->encryptRequestData($orderTransfer, $computopApiHeaderPayment);

        $data = $encryptedArray[ComputopApiConstants::DATA];
        $length = $encryptedArray[ComputopApiConstants::LENGTH];
        $merchantId = $this->config->getMerchantId();

        return $this->buildRequestData($data, $length, $merchantId);
    }
33449
protected function getCSVModuleAttr(string $moduleName) : array
    {
        if (empty($this->modules[$moduleName])) {
            return [];
        }

        return $this->modules[$moduleName];
    }
885738
protected function findRelationTableTransfer(string $relationTableName, array $tableTransfers): ?PropelSchemaTableTransfer
    {
        if ($tableTransfers === []) {
            return null;
        }

        foreach ($tableTransfers as $tableTransfer) {
            $phpName = $tableTransfer->getPhpName();

            if ($relationTableName === $phpName) {
                return $tableTransfer;
            }

            $relations = $tableTransfer->getRelations();

            foreach ($relations as $relation) {
                $relationPhpName = $relation->getPhpName();
                $referencePhpName = $relation->getRefPhpName();

                if ($relationPhpName === $relationTableName) {
                    return $tableTransfers[$relation->getTableName()];
                }

                if ($referencePhpName === $relationTableName) {
                    return $tableTransfer;
                }
            }
        }

        return null;
    }
494676
public function expandWithProductListCompanyRelationTransfer(ProductListTransfer $productListTransfer): ProductListTransfer
    {
        $productListCompanyRelationTransfer = new ProductListCompanyRelationTransfer();

        $productListCompanyRelationTransfer->setIdProductList($productListTransfer->getIdProductList());

        $productListCompanyRelationTransfer = $this->productListCompanyRelationReader
            ->getProductListCompanyRelation($productListCompanyRelationTransfer);

        $productListTransfer->setProductListCompanyRelation($productListCompanyRelationTransfer);

        return $productListTransfer;
    }