| Total Complexity | 5 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php declare(strict_types=1); |
||
| 26 | abstract class QueryBase |
||
| 27 | { |
||
| 28 | /** |
||
| 29 | * Error |
||
| 30 | * |
||
| 31 | * @access protected |
||
| 32 | * @var array $error |
||
| 33 | */ |
||
| 34 | protected $error = array(); |
||
| 35 | |||
| 36 | /** |
||
| 37 | * Has error |
||
| 38 | * |
||
| 39 | * @access public |
||
| 40 | * @return bool True if the last query execution has genaretd an error |
||
| 41 | */ |
||
| 42 | public function hasError(): bool |
||
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * Error code |
||
| 49 | * |
||
| 50 | * @access public |
||
| 51 | * @return mixed|null The last error code reported if any, otherwise null. |
||
| 52 | */ |
||
| 53 | public function errorCode() |
||
| 56 | } |
||
| 57 | |||
| 58 | /** |
||
| 59 | * Error message |
||
| 60 | * |
||
| 61 | * @access public |
||
| 62 | * @return string|null The last error message reported if any, otherwise null. |
||
| 63 | */ |
||
| 64 | public function errorMessage() |
||
| 69 | } |