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