@@ 9-132 (lines=124) @@ | ||
6 | * Class Deal |
|
7 | * @package Padosoft\AffiliateNetwork |
|
8 | */ |
|
9 | class Deal |
|
10 | { |
|
11 | /** |
|
12 | * @var int |
|
13 | */ |
|
14 | public $merchant_ID=0; |
|
15 | ||
16 | /** |
|
17 | * @var string |
|
18 | */ |
|
19 | public $merchant_name=''; |
|
20 | ||
21 | /** |
|
22 | * @var int |
|
23 | */ |
|
24 | public $network_ID=0; |
|
25 | ||
26 | /** |
|
27 | * @var int |
|
28 | */ |
|
29 | public $type=0; |
|
30 | ||
31 | /** |
|
32 | * @var string |
|
33 | */ |
|
34 | public $code=''; |
|
35 | ||
36 | /** |
|
37 | * @var string |
|
38 | */ |
|
39 | public $url=''; |
|
40 | ||
41 | /** |
|
42 | * @var \DateTime |
|
43 | */ |
|
44 | public $startDate; |
|
45 | ||
46 | /** |
|
47 | * @var \DateTime |
|
48 | */ |
|
49 | public $endDate; |
|
50 | ||
51 | /** |
|
52 | * @var integer |
|
53 | */ |
|
54 | public $deal_ID = 0; |
|
55 | ||
56 | /** |
|
57 | * @var string |
|
58 | */ |
|
59 | public $currency_initial = ''; |
|
60 | ||
61 | /** |
|
62 | * @var string |
|
63 | */ |
|
64 | public $logo_path = ''; |
|
65 | ||
66 | /** |
|
67 | * @var string |
|
68 | */ |
|
69 | public $name = ''; |
|
70 | ||
71 | /** |
|
72 | * @var string |
|
73 | */ |
|
74 | public $short_description=''; |
|
75 | ||
76 | /** |
|
77 | * @var string |
|
78 | */ |
|
79 | public $description=''; |
|
80 | ||
81 | /** |
|
82 | * @var string |
|
83 | */ |
|
84 | public $deal_type = ''; |
|
85 | ||
86 | /** |
|
87 | * @var string |
|
88 | */ |
|
89 | public $default_track_uri = ''; |
|
90 | ||
91 | /** |
|
92 | * @var string |
|
93 | */ |
|
94 | public $discount_amount=''; |
|
95 | ||
96 | /** |
|
97 | * @var boolean |
|
98 | */ |
|
99 | public $is_percentage=false; |
|
100 | ||
101 | /** |
|
102 | * @var string |
|
103 | */ |
|
104 | public $landing_url=''; |
|
105 | ||
106 | /** |
|
107 | * @var string |
|
108 | */ |
|
109 | public $ppv = ''; |
|
110 | ||
111 | /** |
|
112 | * @var string |
|
113 | */ |
|
114 | public $ppc = ''; |
|
115 | ||
116 | /** |
|
117 | * @method createInstance |
|
118 | * @return obj istance |
|
119 | */ |
|
120 | public static function createInstance() |
|
121 | { |
|
122 | $obj = null; |
|
123 | try { |
|
124 | $obj = new Deal(); |
|
125 | } catch (\Exception $e) { |
|
126 | throw new \Exception('Error creating instance Deal - ' . $e->getMessage()); |
|
127 | } |
|
128 | return $obj; |
|
129 | } |
|
130 | ||
131 | ||
132 | } |
|
133 |
@@ 12-125 (lines=114) @@ | ||
9 | namespace Padosoft\AffiliateNetwork; |
|
10 | ||
11 | ||
12 | class Product |
|
13 | { |
|
14 | /** |
|
15 | * @var int |
|
16 | */ |
|
17 | public $merchant_ID=0; |
|
18 | ||
19 | /** |
|
20 | * @var string |
|
21 | */ |
|
22 | public $merchant_name=''; |
|
23 | ||
24 | /** |
|
25 | * @var string |
|
26 | */ |
|
27 | public $name = ''; |
|
28 | ||
29 | /** |
|
30 | * @var string |
|
31 | */ |
|
32 | public $modified = ''; |
|
33 | ||
34 | /** |
|
35 | * @var double |
|
36 | */ |
|
37 | public $price = 0.0; |
|
38 | ||
39 | /** |
|
40 | * @var string |
|
41 | */ |
|
42 | public $currency = ''; |
|
43 | ||
44 | /** |
|
45 | * @var string |
|
46 | */ |
|
47 | public $ppv = ''; |
|
48 | ||
49 | /** |
|
50 | * @var string |
|
51 | */ |
|
52 | public $ppc = ''; |
|
53 | ||
54 | //adspaceId = 0; |
|
55 | ||
56 | /** |
|
57 | * @var string |
|
58 | */ |
|
59 | public $description = ''; |
|
60 | ||
61 | /** |
|
62 | * @var string |
|
63 | */ |
|
64 | public $manufacturer = ''; |
|
65 | ||
66 | /** |
|
67 | * @var string |
|
68 | */ |
|
69 | public $ean = ''; |
|
70 | ||
71 | /** |
|
72 | * @var string |
|
73 | */ |
|
74 | public $deliveryTime = ''; |
|
75 | ||
76 | /** |
|
77 | * @var double |
|
78 | */ |
|
79 | public $priceOld = 0.0; |
|
80 | ||
81 | /** |
|
82 | * @var string |
|
83 | */ |
|
84 | public $shippingCosts = ''; |
|
85 | ||
86 | /** |
|
87 | * @var string |
|
88 | */ |
|
89 | public $shipping = ''; |
|
90 | ||
91 | /** |
|
92 | * @var string |
|
93 | */ |
|
94 | public $merchantCategory; |
|
95 | ||
96 | /** |
|
97 | * @var string |
|
98 | */ |
|
99 | public $merchantProductId = ''; |
|
100 | ||
101 | /** |
|
102 | * @var string |
|
103 | */ |
|
104 | public $id = ''; |
|
105 | ||
106 | /** |
|
107 | * @var string |
|
108 | */ |
|
109 | public $image = ''; |
|
110 | ||
111 | /** |
|
112 | * @method createInstance |
|
113 | * @return obj istance |
|
114 | */ |
|
115 | public static function createInstance() |
|
116 | { |
|
117 | $obj = null; |
|
118 | try { |
|
119 | $obj = new Product(); |
|
120 | } catch (\Exception $e) { |
|
121 | throw new \Exception('Error creating instance Deal - ' . $e->getMessage()); |
|
122 | } |
|
123 | return $obj; |
|
124 | } |
|
125 | } |
|
126 |