SqlResultSetError.php 707 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. <?php
  2. namespace KarmaFW\Database\Sql;
  3. class SqlResultSetError
  4. {
  5. protected $query;
  6. protected $error_code;
  7. protected $error_msg;
  8. public function __construct($query, $error_code, $error_msg)
  9. {
  10. $this->query = $query;
  11. $this->error_code = $error_code;
  12. $this->error_msg = $error_msg;
  13. }
  14. public function getErrorCode()
  15. {
  16. return $this->error_code;
  17. }
  18. public function getErrorMessage()
  19. {
  20. return $this->error_msg;
  21. }
  22. public function getRowsCount()
  23. {
  24. return 0;
  25. }
  26. public function getfoundRowsCount()
  27. {
  28. return 0;
  29. }
  30. public function fetchAll()
  31. {
  32. return [];
  33. }
  34. public function fetchOne()
  35. {
  36. return null;
  37. }
  38. public function fetchColumn($column_name)
  39. {
  40. return null;
  41. }
  42. }