| Total Complexity | 5 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class TableWrapper extends MysqlWrapper |
||
| 14 | { |
||
| 15 | //-------------------------------------------------------------------------------------------------------------------- |
||
| 16 | /** |
||
| 17 | * @inheritdoc |
||
| 18 | 1 | */ |
|
| 19 | protected function generateMethodBodyWithLobFetchData(WrapperContext $context): void |
||
| 20 | 1 | { |
|
| 21 | // Nothing to do. |
||
| 22 | } |
||
| 23 | |||
| 24 | //-------------------------------------------------------------------------------------------------------------------- |
||
| 25 | /** |
||
| 26 | * @inheritdoc |
||
| 27 | 1 | */ |
|
| 28 | protected function generateMethodBodyWithLobReturnData(WrapperContext $context): void |
||
| 29 | 1 | { |
|
| 30 | // Nothing to do. |
||
| 31 | } |
||
| 32 | |||
| 33 | //-------------------------------------------------------------------------------------------------------------------- |
||
| 34 | /** |
||
| 35 | * @inheritdoc |
||
| 36 | 1 | */ |
|
| 37 | protected function generateMethodBodyWithoutLob(WrapperContext $context): void |
||
| 38 | 1 | { |
|
| 39 | $this->throws(MySqlDataLayerException::class); |
||
| 40 | 1 | ||
| 41 | 1 | $context->codeStore->append(sprintf("return \$this->executeTable('call %s(%s)');", |
|
| 42 | $context->phpStratumMetadata['routine_name'], |
||
| 43 | $this->getRoutineArgs($context))); |
||
| 44 | } |
||
| 45 | |||
| 46 | //-------------------------------------------------------------------------------------------------------------------- |
||
| 47 | /** |
||
| 48 | * @inheritdoc |
||
| 49 | */ |
||
| 50 | protected function getDocBlockReturnType(WrapperContext $context): string |
||
| 53 | } |
||
| 54 | |||
| 55 | //-------------------------------------------------------------------------------------------------------------------- |
||
| 56 | /** |
||
| 57 | * @inheritdoc |
||
| 58 | */ |
||
| 59 | protected function getReturnTypeDeclaration(WrapperContext $context): string |
||
| 68 |