Total Complexity | 4 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Coverage | 75% |
Changes | 0 |
1 | <?php |
||
10 | abstract class Schema |
||
11 | { |
||
12 | private TableFactory $factory; |
||
13 | |||
14 | 1 | public function __construct(TableFactory $factory) |
|
15 | { |
||
16 | 1 | $this->factory = $factory; |
|
17 | } |
||
18 | |||
19 | /** |
||
20 | * This name is used to qualify table-references, e.g. using schema-names in Postgres, or |
||
21 | * table-name prefixes in MySQL. |
||
22 | * |
||
23 | * The default implementation returns NULL - override this in your Schema implementation, if needed. |
||
24 | * |
||
25 | * @return string|null optional Schema-name, or NULL |
||
26 | */ |
||
27 | public function getName(): string|null |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @param $class_name Table class-name |
||
34 | * @param $table_name relational table-name |
||
|
|||
35 | * @param $alias optional Table alias |
||
36 | */ |
||
37 | 1 | protected function createTable(string $class_name, string $table_name, string|null $alias = null): Table |
|
40 | } |
||
41 | |||
42 | /** |
||
43 | * @ignore |
||
44 | * |
||
45 | * @param string $name |
||
46 | * |
||
47 | * @return Table |
||
48 | */ |
||
49 | 1 | public function __get($name) |
|
56 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths