DatabaseException.php 388 B

12345678910111213141516171819202122232425262728293031
  1. <?php
  2. class DatabaseException extends Exception
  3. {
  4. /** @var string */
  5. protected $query;
  6. /**
  7. * Set the executed SQL query
  8. *
  9. * @param string $query
  10. *
  11. * @return $this
  12. */
  13. public function setQuery($query)
  14. {
  15. $this->query = $query;
  16. return $this;
  17. }
  18. /**
  19. * Get the executed SQL query
  20. *
  21. * @return string
  22. */
  23. public function getQuery()
  24. {
  25. return $this->query;
  26. }
  27. }