| Total Complexity | 3 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 17 | class FileTable extends Records |
||
| 18 | { |
||
| 19 | 1 | public function child(string $childAlias, string $joinType = IQueryBuilder::JOIN_LEFT, string $parentAlias = '', string $customAlias = ''): AConnector |
|
| 20 | { |
||
| 21 | // @todo idea: how it will work |
||
| 22 | // - from the most far ones load records and filter them by other params |
||
| 23 | // - them continue back and compare already available join params defined for each pair |
||
| 24 | // - the foremost records will be only that which has been available by previously selected ones |
||
| 25 | // De facto do the full table engine inside the php |
||
| 26 | 1 | throw new MapperException('Cannot make relations over files!'); |
|
| 27 | } |
||
| 28 | |||
| 29 | 1 | public function childNotExist(string $childAlias, string $table, string $column, string $parentAlias = ''): AConnector |
|
| 30 | { |
||
| 31 | 1 | throw new MapperException('Cannot make relations over files!'); |
|
| 32 | } |
||
| 33 | |||
| 34 | /** |
||
| 35 | * @throws MapperException |
||
| 36 | * @return ARecord[] |
||
| 37 | */ |
||
| 38 | 17 | protected function getInitialRecords(): array |
|
| 41 | } |
||
| 42 | } |
||
| 43 |