| Total Complexity | 6 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class ParsedSchema |
||
| 8 | { |
||
| 9 | /** @var SchemaConfigInterface */ |
||
| 10 | private $schemaConfig; |
||
| 11 | /** @var string */ |
||
| 12 | private $path; |
||
| 13 | /** @var array */ |
||
| 14 | private $tables; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * ParsedSchema constructor. |
||
| 18 | * |
||
| 19 | * @param SchemaConfigInterface $schemaConfig |
||
| 20 | * @param string $path |
||
| 21 | * @param array $tables |
||
| 22 | */ |
||
| 23 | 10 | public function __construct(SchemaConfigInterface $schemaConfig, string $path, array $tables) |
|
|
|
|||
| 24 | { |
||
| 25 | 10 | $this->schemaConfig = $schemaConfig; |
|
| 26 | 10 | $this->path = $path; |
|
| 27 | 10 | $this->tables = $tables; |
|
| 28 | 10 | } |
|
| 29 | |||
| 30 | /** |
||
| 31 | * @return SchemaConfigInterface |
||
| 32 | */ |
||
| 33 | 6 | public function getSchemaConfig(): SchemaConfigInterface |
|
| 34 | { |
||
| 35 | 6 | return $this->schemaConfig; |
|
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | 8 | public function getPath(): string |
|
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | 10 | public function getTables(): array |
|
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param array $tables |
||
| 56 | * |
||
| 57 | * @return ParsedSchema |
||
| 58 | */ |
||
| 59 | 3 | public function setTables(array $tables): ParsedSchema |
|
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | 5 | public function getSchemaName(): string |
|
| 71 | } |
||
| 72 | } |
||
| 73 |