Browse code

Created repository.

DoubleBastionAdmin authored on 01/03/2022 23:31:10
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,19 @@
1
+<?php
2
+
3
+namespace Phaxio;
4
+
5
+abstract class AbstractResources
6
+{
7
+    protected $phaxio;
8
+    protected $collection_class;
9
+
10
+    public function __construct($phaxio)
11
+    {
12
+        $this->phaxio = $phaxio;
13
+    }
14
+
15
+    public function getList($params = array()) {
16
+        $collection_class = 'Phaxio\\' . $this->collection_class;
17
+        return new $collection_class($this->phaxio, $params);
18
+    }
19
+}