@@ 11-31 (lines=21) @@ | ||
8 | * Class Deal |
|
9 | * @package Padosoft\AffiliateNetwork |
|
10 | */ |
|
11 | class DealsResultset |
|
12 | { |
|
13 | public $page=0; |
|
14 | public $items=0; |
|
15 | public $total=0; |
|
16 | public $deals=[]; |
|
17 | /** |
|
18 | * @method createInstance |
|
19 | * @return obj istance |
|
20 | */ |
|
21 | public static function createInstance() |
|
22 | { |
|
23 | $obj = null; |
|
24 | try { |
|
25 | $obj = new DealsResultset(); |
|
26 | } catch (\Exception $e) { |
|
27 | throw new \Exception('Error creating instance DealsResultset - ' . $e->getMessage()); |
|
28 | } |
|
29 | return $obj; |
|
30 | } |
|
31 | } |
@@ 12-33 (lines=22) @@ | ||
9 | namespace Padosoft\AffiliateNetwork; |
|
10 | ||
11 | ||
12 | class ProductsResultset |
|
13 | { |
|
14 | ||
15 | public $page=0; |
|
16 | public $items=0; |
|
17 | public $total=0; |
|
18 | public $products=[]; |
|
19 | /** |
|
20 | * @method createInstance |
|
21 | * @return obj istance |
|
22 | */ |
|
23 | public static function createInstance() |
|
24 | { |
|
25 | $obj = null; |
|
26 | try { |
|
27 | $obj = new ProductsResultset(); |
|
28 | } catch (\Exception $e) { |
|
29 | throw new \Exception('Error creating instance ProductsResultset - ' . $e->getMessage()); |
|
30 | } |
|
31 | return $obj; |
|
32 | } |
|
33 | } |