Issues (3)

src/Utils/TablePrefixUtilInterface.php (2 issues)

1
<?php
2
3
/**
4
 * TechDivision\Import\Dbal\Utils\TablePrefixUtilInterface
5
 *
6
 * PHP version 7
7
 *
8
 * @author    Tim Wagner <[email protected]>
9
 * @copyright 2021 TechDivision GmbH <[email protected]>
10
 * @license   https://opensource.org/licenses/MIT
11
 * @link      https://github.com/techdivision/import-dbal
12
 * @link      http://www.techdivision.com
13
 */
14
15
namespace TechDivision\Import\Dbal\Utils;
16
17
use TechDivision\Import\Configuration\ConfigurationInterface;
0 ignored issues
show
The type TechDivision\Import\Conf...\ConfigurationInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
use TechDivision\Import\Services\RegistryProcessorInterface;
0 ignored issues
show
The type TechDivision\Import\Serv...istryProcessorInterface was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
19
20
/**
21
 * Interface for table prefix utility implementations.
22
 *
23
 * @author    Tim Wagner <[email protected]>
24
 * @copyright 2021 TechDivision GmbH <[email protected]>
25
 * @license   https://opensource.org/licenses/MIT
26
 * @link      https://github.com/techdivision/import-dbal
27
 * @link      http://www.techdivision.com
28
 */
29
interface TablePrefixUtilInterface extends SqlCompilerInterface
30
{
31
32
    /**
33
     * The token used to identifiy a primary key column.
34
     *
35
     * @var string
36
     */
37
    const TOKEN = 'table';
38
39
    /**
40
     * Returns the prefixed table name.
41
     *
42
     * @param string $tableName The table name to prefix
43
     *
44
     * @return string The prefixed table name
45
     * @throws \Exception Is thrown if the table name can't be prefixed
46
     */
47
    public function getPrefixedTableName($tableName);
48
49
    /**
50
     * @return ConfigurationInterface
51
     */
52
    public function getConfiguration(): ConfigurationInterface;
53
54
    /**
55
     * @return RegistryProcessorInterface
56
     */
57
    public function getRegistryProcessor() : RegistryProcessorInterface;
58
}
59