Adding comment

This commit is contained in:
Dennis Eichhorn 2016-05-12 11:22:57 +02:00
parent 321b0ae48d
commit 3f28193dd5

View File

@ -43,6 +43,16 @@ class TableException extends \PDOException
parent::__construct('The table "' . $message . '" doesn\'t exist.', $code, $previous);
}
/**
* Get table name from exception.
*
* @param string $message Exception message
*
* @return string
*
* @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com>
*/
public static function findTable(string $message) : string
{
$pos1 = strpos($message, '\'');