@param \ArchitectureSniffer\PropelQuery\Schema\Transfer\PropelSchemaTableTransfer $tableTransfer
@param \ArchitectureSniffer\Path\Transfer\PathTransfer $pathTransfer

@return \Countable|\Symfony\Component\Finder\SplFileInfo[]
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();
    }
626491
public function getDataSubArray(ComputopApiRequestTransfer $computopApiRequestTransfer): array
    {
        $dataSubArray[ComputopApiConstants::PAY_ID] = $computopApiRequestTransfer->getPayId();
        $dataSubArray[ComputopApiConstants::TRANS_ID] = $computopApiRequestTransfer->getTransId();
        $dataSubArray[ComputopApiConstants::REQ_ID] = $computopApiRequestTransfer->getReqId();
        $dataSubArray[ComputopApiConstants::REF_NR] = $computopApiRequestTransfer->getRefNr();
        $dataSubArray[ComputopApiConstants::AMOUNT] = $computopApiRequestTransfer->getAmount();
        $dataSubArray[ComputopApiConstants::CURRENCY] = $computopApiRequestTransfer->getCurrency();
        $dataSubArray[ComputopApiConstants::MAC] = $computopApiRequestTransfer->getMac();

        return $dataSubArray;
    }
216718
public function importShoppingListCompanyUser(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()
            ->getShoppingListCompanyUserDataImporter()
            ->import($dataImporterConfigurationTransfer);
    }
868281
public function expandWithProductListCustomerRelationTransfer(ProductListTransfer $productListTransfer): ProductListTransfer
    {
        $productListCustomerRelationTransfer = new ProductListCustomerRelationTransfer();

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

        $productListCustomerRelationTransfer = $this->productListCustomerRelationReader
            ->getProductListCustomerRelation($productListCustomerRelationTransfer);

        $productListTransfer->setProductListCustomerRelation($productListCustomerRelationTransfer);

        return $productListTransfer;
    }
1172489
public function importCompanyUserRoles(?DataImporterConfigurationTransfer $dataImporterConfigurationTransfer = null): DataImporterReportTransfer
    {
        return $this->getFactory()->createCompanyUserRoleDataImport()->import($dataImporterConfigurationTransfer);
    }
472546
protected function applyFilterToQuery(FosBrandQuery $fosBrandQuery, ?FilterTransfer $filterTransfer): FosBrandQuery
    {
        $criteria = new Criteria();
        if ($filterTransfer !== null) {
            $criteria = (new PropelFilterCriteria($filterTransfer))
                ->toCriteria();
        }

        $fosBrandQuery->mergeWith($criteria);

        return $fosBrandQuery;
    }
212626
public function deleteProductListCustomerRelations(ProductListTransfer $productListTransfer): void
    {
        $productListCustomerEntities = $this->getFactory()
            ->createProductListCustomerQuery()
            ->filterByFkProductList($productListTransfer->getIdProductList())
            ->find();

        foreach ($productListCustomerEntities as $productListCustomerEntity) {
            $productListCustomerEntity->delete();
        }
    }
1179024
public function newAction(StockTransfer $stockTransfer)
    {
        $stocktransferitem = new StockTransferItem();
        $stocktransferitem->setStockTransfer($stockTransfer);
        $form = $this->createForm(new StockTransferItemType(), $stocktransferitem);

        return array(
            'stocktransferitem' => $stocktransferitem,
            'form' => $form->createView(),
        );
    }
1013710
public function getProductListById(ProductListTransfer $productListTransfer): ProductListTransfer
    {
        $productListTransfer = parent::getProductListById($productListTransfer);

        $productListTransfer = $this->productListTransferExpander->expand($productListTransfer);

        return $productListTransfer;
    }
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;
    }
1242764
public function mapBrandTransfer(FosBrandEntityTransfer $brandEntityTransfer): BrandTransfer
    {
        $brandTransfer = new BrandTransfer();

        $brandTransfer->fromArray($brandEntityTransfer->toArray(), true);

        return $brandTransfer;
    }
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;
    }
448477
protected function convertToPdfTransfer(TransferInterface $transfer, $containerName)
    {
        $documentBuilder = $this->getConverter($containerName);

        $pdfTransfer = new PdfTransfer();
        $pdfTransfer = $documentBuilder->convertToPdfTransfer($transfer, $pdfTransfer);

        return $pdfTransfer;
    }
917713
protected function addProductListsToCustomerTransfer(
        CustomerTransfer $customerTransfer,
        ProductListCollectionTransfer $productListCollectionTransfer
    ): void {
        foreach ($productListCollectionTransfer->getProductLists() as $productListTransfer) {
            $idProductList = $productListTransfer->getIdProductList();

            if ($productListTransfer->getType() === static::TYPE_WHITELIST) {
                $customerTransfer->getCustomerProductListCollection()->addWhitelistId($idProductList);

                continue;
            }

            $customerTransfer->getCustomerProductListCollection()->addBlacklistId($idProductList);
        }
    }
416685
public function getProductListCollectionByIdCustomerId(
        CustomerTransfer $customerTransfer
    ): ProductListCollectionTransfer {
        $customerTransfer->requireIdCustomer();

        return $this->productListCustomerRepository
            ->getProductListCollectionByIdCustomer($customerTransfer->getIdCustomer());
    }
792504
public function getProjectModulePathByModuleName(string $moduleName, PathTransfer $pathTransfer): string
    {
        return $pathTransfer->getProjectPath() . $moduleName . DIRECTORY_SEPARATOR;
    }
678659
public function getBrandCollectionByIdProductAbstractId(ProductAbstractTransfer $productAbstractTransfer): BrandCollectionTransfer
    {
        $productAbstractTransfer->requireIdProductAbstract();

        return $this->brandProductRepository->getBrandCollectionByAbstractIdProduct($productAbstractTransfer->getIdProductAbstract());
    }