| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,27 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
- |
|
| 3 |
-namespace Telnyx\ApiOperations; |
|
| 4 |
- |
|
| 5 |
-/** |
|
| 6 |
- * Trait for retrievable resources. Adds a `retrieve()` static method to the |
|
| 7 |
- * class. |
|
| 8 |
- * |
|
| 9 |
- * This trait should only be applied to classes that derive from TelnyxObject. |
|
| 10 |
- */ |
|
| 11 |
-trait Retrieve |
|
| 12 |
-{
|
|
| 13 |
- /** |
|
| 14 |
- * @param array|string $id The ID of the API resource to retrieve, |
|
| 15 |
- * or an options array containing an `id` key. |
|
| 16 |
- * @param array|string|null $opts |
|
| 17 |
- * |
|
| 18 |
- * @return \Telnyx\TelnyxObject |
|
| 19 |
- */ |
|
| 20 |
- public static function retrieve($id, $opts = null) |
|
| 21 |
- {
|
|
| 22 |
- $opts = \Telnyx\Util\RequestOptions::parse($opts); |
|
| 23 |
- $instance = new static($id, $opts); |
|
| 24 |
- $instance->refresh(); |
|
| 25 |
- return $instance; |
|
| 26 |
- } |
|
| 27 |
-} |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,27 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+namespace Telnyx\ApiOperations; |
|
| 4 |
+ |
|
| 5 |
+/** |
|
| 6 |
+ * Trait for retrievable resources. Adds a `retrieve()` static method to the |
|
| 7 |
+ * class. |
|
| 8 |
+ * |
|
| 9 |
+ * This trait should only be applied to classes that derive from TelnyxObject. |
|
| 10 |
+ */ |
|
| 11 |
+trait Retrieve |
|
| 12 |
+{
|
|
| 13 |
+ /** |
|
| 14 |
+ * @param array|string $id The ID of the API resource to retrieve, |
|
| 15 |
+ * or an options array containing an `id` key. |
|
| 16 |
+ * @param array|string|null $opts |
|
| 17 |
+ * |
|
| 18 |
+ * @return \Telnyx\TelnyxObject |
|
| 19 |
+ */ |
|
| 20 |
+ public static function retrieve($id, $opts = null) |
|
| 21 |
+ {
|
|
| 22 |
+ $opts = \Telnyx\Util\RequestOptions::parse($opts); |
|
| 23 |
+ $instance = new static($id, $opts); |
|
| 24 |
+ $instance->refresh(); |
|
| 25 |
+ return $instance; |
|
| 26 |
+ } |
|
| 27 |
+} |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,27 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
- |
|
| 3 |
-namespace Telnyx\ApiOperations; |
|
| 4 |
- |
|
| 5 |
-/** |
|
| 6 |
- * Trait for retrievable resources. Adds a `retrieve()` static method to the |
|
| 7 |
- * class. |
|
| 8 |
- * |
|
| 9 |
- * This trait should only be applied to classes that derive from TelnyxObject. |
|
| 10 |
- */ |
|
| 11 |
-trait Retrieve |
|
| 12 |
-{
|
|
| 13 |
- /** |
|
| 14 |
- * @param array|string $id The ID of the API resource to retrieve, |
|
| 15 |
- * or an options array containing an `id` key. |
|
| 16 |
- * @param array|string|null $opts |
|
| 17 |
- * |
|
| 18 |
- * @return \Telnyx\TelnyxObject |
|
| 19 |
- */ |
|
| 20 |
- public static function retrieve($id, $opts = null) |
|
| 21 |
- {
|
|
| 22 |
- $opts = \Telnyx\Util\RequestOptions::parse($opts); |
|
| 23 |
- $instance = new static($id, $opts); |
|
| 24 |
- $instance->refresh(); |
|
| 25 |
- return $instance; |
|
| 26 |
- } |
|
| 27 |
-} |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,27 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+namespace Telnyx\ApiOperations; |
|
| 4 |
+ |
|
| 5 |
+/** |
|
| 6 |
+ * Trait for retrievable resources. Adds a `retrieve()` static method to the |
|
| 7 |
+ * class. |
|
| 8 |
+ * |
|
| 9 |
+ * This trait should only be applied to classes that derive from TelnyxObject. |
|
| 10 |
+ */ |
|
| 11 |
+trait Retrieve |
|
| 12 |
+{
|
|
| 13 |
+ /** |
|
| 14 |
+ * @param array|string $id The ID of the API resource to retrieve, |
|
| 15 |
+ * or an options array containing an `id` key. |
|
| 16 |
+ * @param array|string|null $opts |
|
| 17 |
+ * |
|
| 18 |
+ * @return \Telnyx\TelnyxObject |
|
| 19 |
+ */ |
|
| 20 |
+ public static function retrieve($id, $opts = null) |
|
| 21 |
+ {
|
|
| 22 |
+ $opts = \Telnyx\Util\RequestOptions::parse($opts); |
|
| 23 |
+ $instance = new static($id, $opts); |
|
| 24 |
+ $instance->refresh(); |
|
| 25 |
+ return $instance; |
|
| 26 |
+ } |
|
| 27 |
+} |
| 1 | 1 |
deleted file mode 100644 |
| ... | ... |
@@ -1,27 +0,0 @@ |
| 1 |
-<?php |
|
| 2 |
- |
|
| 3 |
-namespace Telnyx\ApiOperations; |
|
| 4 |
- |
|
| 5 |
-/** |
|
| 6 |
- * Trait for retrievable resources. Adds a `retrieve()` static method to the |
|
| 7 |
- * class. |
|
| 8 |
- * |
|
| 9 |
- * This trait should only be applied to classes that derive from TelnyxObject. |
|
| 10 |
- */ |
|
| 11 |
-trait Retrieve |
|
| 12 |
-{
|
|
| 13 |
- /** |
|
| 14 |
- * @param array|string $id The ID of the API resource to retrieve, |
|
| 15 |
- * or an options array containing an `id` key. |
|
| 16 |
- * @param array|string|null $opts |
|
| 17 |
- * |
|
| 18 |
- * @return \Telnyx\TelnyxObject |
|
| 19 |
- */ |
|
| 20 |
- public static function retrieve($id, $opts = null) |
|
| 21 |
- {
|
|
| 22 |
- $opts = \Telnyx\Util\RequestOptions::parse($opts); |
|
| 23 |
- $instance = new static($id, $opts); |
|
| 24 |
- $instance->refresh(); |
|
| 25 |
- return $instance; |
|
| 26 |
- } |
|
| 27 |
-} |
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,27 @@ |
| 1 |
+<?php |
|
| 2 |
+ |
|
| 3 |
+namespace Telnyx\ApiOperations; |
|
| 4 |
+ |
|
| 5 |
+/** |
|
| 6 |
+ * Trait for retrievable resources. Adds a `retrieve()` static method to the |
|
| 7 |
+ * class. |
|
| 8 |
+ * |
|
| 9 |
+ * This trait should only be applied to classes that derive from TelnyxObject. |
|
| 10 |
+ */ |
|
| 11 |
+trait Retrieve |
|
| 12 |
+{
|
|
| 13 |
+ /** |
|
| 14 |
+ * @param array|string $id The ID of the API resource to retrieve, |
|
| 15 |
+ * or an options array containing an `id` key. |
|
| 16 |
+ * @param array|string|null $opts |
|
| 17 |
+ * |
|
| 18 |
+ * @return \Telnyx\TelnyxObject |
|
| 19 |
+ */ |
|
| 20 |
+ public static function retrieve($id, $opts = null) |
|
| 21 |
+ {
|
|
| 22 |
+ $opts = \Telnyx\Util\RequestOptions::parse($opts); |
|
| 23 |
+ $instance = new static($id, $opts); |
|
| 24 |
+ $instance->refresh(); |
|
| 25 |
+ return $instance; |
|
| 26 |
+ } |
|
| 27 |
+} |