From 3f28193dd53741ac58696c2e7315647c179f23ab Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 12 May 2016 11:22:57 +0200 Subject: [PATCH] Adding comment --- .../Database/Schema/Exception/TableException.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/DataStorage/Database/Schema/Exception/TableException.php b/DataStorage/Database/Schema/Exception/TableException.php index 62e75f80f..6151c5108 100644 --- a/DataStorage/Database/Schema/Exception/TableException.php +++ b/DataStorage/Database/Schema/Exception/TableException.php @@ -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 + */ public static function findTable(string $message) : string { $pos1 = strpos($message, '\'');