| Total Complexity | 6 |
| Total Lines | 64 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| 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 | public function __construct(SchemaConfigInterface $schemaConfig, string $path, array $tables) |
||
|
|
|||
| 24 | { |
||
| 25 | $this->schemaConfig = $schemaConfig; |
||
| 26 | $this->path = $path; |
||
| 27 | $this->tables = $tables; |
||
| 28 | } |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @return SchemaConfigInterface |
||
| 32 | */ |
||
| 33 | public function getSchemaConfig(): SchemaConfigInterface |
||
| 34 | { |
||
| 35 | return $this->schemaConfig; |
||
| 36 | } |
||
| 37 | |||
| 38 | /** |
||
| 39 | * @return string |
||
| 40 | */ |
||
| 41 | public function getPath(): string |
||
| 44 | } |
||
| 45 | |||
| 46 | /** |
||
| 47 | * @return array |
||
| 48 | */ |
||
| 49 | public function getTables(): array |
||
| 52 | } |
||
| 53 | |||
| 54 | /** |
||
| 55 | * @param array $tables |
||
| 56 | * |
||
| 57 | * @return ParsedSchema |
||
| 58 | */ |
||
| 59 | public function setTables(array $tables): ParsedSchema |
||
| 60 | { |
||
| 61 | $this->tables = $tables; |
||
| 62 | return $this; |
||
| 63 | } |
||
| 64 | |||
| 65 | /** |
||
| 66 | * @return string |
||
| 67 | */ |
||
| 68 | public function getSchameName(): string |
||
| 71 | } |
||
| 72 | } |
||
| 73 |