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 |
+} |