Total Complexity | 6 |
Total Lines | 64 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
18 | class ParsedSchema |
||
19 | { |
||
20 | /** @var SchemaConfigInterface */ |
||
21 | private $schemaConfig; |
||
22 | /** @var string */ |
||
23 | private $path; |
||
24 | /** @var string[] */ |
||
25 | private $tables; |
||
26 | |||
27 | /** |
||
28 | * ParsedSchema constructor. |
||
29 | * |
||
30 | * @param SchemaConfigInterface $schemaConfig |
||
31 | * @param string $path |
||
32 | * @param string[] $tables |
||
33 | */ |
||
34 | 16 | public function __construct(SchemaConfigInterface $schemaConfig, string $path, array $tables) |
|
|
|||
35 | { |
||
36 | 16 | $this->schemaConfig = $schemaConfig; |
|
37 | 16 | $this->path = $path; |
|
38 | 16 | $this->tables = $tables; |
|
39 | 16 | } |
|
40 | |||
41 | /** |
||
42 | * @return SchemaConfigInterface |
||
43 | */ |
||
44 | 11 | public function getSchemaConfig(): SchemaConfigInterface |
|
45 | { |
||
46 | 11 | return $this->schemaConfig; |
|
47 | } |
||
48 | |||
49 | /** |
||
50 | * @return string |
||
51 | */ |
||
52 | 10 | public function getPath(): string |
|
55 | } |
||
56 | |||
57 | /** |
||
58 | * @return string[] |
||
59 | */ |
||
60 | 16 | public function getTables(): array |
|
63 | } |
||
64 | |||
65 | /** |
||
66 | * @param string[] $tables |
||
67 | * |
||
68 | * @return ParsedSchema |
||
69 | */ |
||
70 | 6 | public function setTables(array $tables): ParsedSchema |
|
74 | } |
||
75 | |||
76 | /** |
||
77 | * @return string |
||
78 | */ |
||
79 | 7 | public function getSchemaName(): string |
|
82 | } |
||
83 | } |
||
84 |