| Total Complexity | 8 |
| Total Lines | 55 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 15 | final class Capsule implements CapsuleInterface |
||
| 16 | { |
||
| 17 | private array $schemas = []; |
||
| 18 | |||
| 19 | 432 | public function __construct(private DatabaseInterface $database) |
|
| 20 | { |
||
| 21 | } |
||
| 22 | |||
| 23 | /** |
||
| 24 | * {@inheritdoc} |
||
| 25 | */ |
||
| 26 | 312 | public function getDatabase(): DatabaseInterface |
|
| 27 | { |
||
| 28 | 312 | return $this->database; |
|
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * {@inheritdoc} |
||
| 33 | */ |
||
| 34 | 8 | public function getTable(string $table): TableInterface |
|
| 37 | } |
||
| 38 | |||
| 39 | /** |
||
| 40 | * {@inheritdoc} |
||
| 41 | */ |
||
| 42 | 408 | public function getSchema(string $table): AbstractTable |
|
| 50 | } |
||
| 51 | |||
| 52 | /** |
||
| 53 | * {@inheritdoc} |
||
| 54 | * |
||
| 55 | * @throws \Throwable |
||
| 56 | */ |
||
| 57 | 408 | public function execute(array $operations): void |
|
| 73 |