| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,26 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+namespace Telnyx\Exception; |
|
| 4 |
+ |
|
| 5 |
+// TODO: remove this check once we drop support for PHP 5 |
|
| 6 |
+if (interface_exists(\Throwable::class)) {
|
|
| 7 |
+ /** |
|
| 8 |
+ * The base interface for all Telnyx exceptions. |
|
| 9 |
+ * |
|
| 10 |
+ * @package Telnyx\Exception |
|
| 11 |
+ */ |
|
| 12 |
+ interface ExceptionInterface extends \Throwable |
|
| 13 |
+ {
|
|
| 14 |
+ } |
|
| 15 |
+} else {
|
|
| 16 |
+ /** |
|
| 17 |
+ * The base interface for all Telnyx exceptions. |
|
| 18 |
+ * |
|
| 19 |
+ * @package Telnyx\Exception |
|
| 20 |
+ */ |
|
| 21 |
+ // phpcs:disable PSR1.Classes.ClassDeclaration.MultipleClasses |
|
| 22 |
+ interface ExceptionInterface |
|
| 23 |
+ {
|
|
| 24 |
+ } |
|
| 25 |
+ // phpcs:enable |
|
| 26 |
+} |