Yaffs site version 1.1
[yaffs-website] / vendor / psy / psysh / src / Psy / Exception / BreakException.php
index a0a2ec62c337e0678c9870ba25de6ebef84e3987..4592c51faf29f66009f196dc1e409628eb827f4e 100644 (file)
@@ -36,4 +36,16 @@ class BreakException extends \Exception implements Exception
     {
         return $this->rawMessage;
     }
+
+    /**
+     * Throws BreakException.
+     *
+     * Since `throw` can not be inserted into arbitrary expressions, it wraps with function call.
+     *
+     * @throws BreakException
+     */
+    public static function exitShell()
+    {
+        throw new self('Goodbye');
+    }
 }