| Total Complexity | 5 |
| Total Lines | 29 |
| Duplicated Lines | 0 % |
| Coverage | 92.86% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | class RecordSet implements Countable |
||
| 11 | { |
||
| 12 | private array $tables = []; |
||
| 13 | |||
| 14 | private int $count = 0; |
||
| 15 | |||
| 16 | 4 | public function getTable(string $tableName): Table |
|
| 17 | { |
||
| 18 | 4 | if (\array_key_exists($tableName, $this->tables) === false) { |
|
| 19 | throw new NoTableFoundException($tableName); |
||
| 20 | } |
||
| 21 | |||
| 22 | 4 | return $this->tables[$tableName]; |
|
| 23 | } |
||
| 24 | |||
| 25 | 4 | public function load(Traversable $traversable, string $tableName): void |
|
| 34 | 4 | } |
|
| 35 | |||
| 36 | 3 | public function count(): int |
|
| 41 |