1 | <?php |
||
18 | class PepperJamApi extends AbstractNetwork implements NetworkInterface |
||
19 | { |
||
20 | /** |
||
21 | * @var object |
||
22 | */ |
||
23 | private $_network = null; |
||
24 | protected $_tracking_parameter = 'sid'; |
||
25 | |||
26 | /** |
||
27 | * @method __construct |
||
28 | */ |
||
29 | public function __construct(string $username, string $password) |
||
34 | |||
35 | public function checkLogin() |
||
39 | |||
40 | /** |
||
41 | * @return array of Merchants |
||
42 | * @throws \Exception |
||
43 | */ |
||
44 | public function getMerchants() : array |
||
58 | |||
59 | /** |
||
60 | * @param null $merchantID |
||
61 | * @param int $page |
||
62 | * @param int $items_per_page |
||
63 | * @return DealsResultset array of Deal |
||
64 | * @throws \Exception |
||
65 | */ |
||
66 | public function getDeals($merchantID = null, int $page = 0, int $items_per_page = 100): DealsResultset |
||
70 | |||
71 | /** |
||
72 | * @param \DateTime $dateFrom |
||
73 | * @param \DateTime $dateTo |
||
74 | * @param array $arrMerchantID |
||
75 | * @return array of Transaction |
||
76 | * @throws \Exception |
||
77 | */ |
||
78 | public function getSales(\DateTime $dateFrom, \DateTime $dateTo, array $arrMerchantID = array()) : array |
||
98 | |||
99 | /** |
||
100 | * @param \DateTime $dateFrom |
||
101 | * @param \DateTime $dateTo |
||
102 | * @param int $merchantID |
||
103 | * @return array of Stat |
||
104 | */ |
||
105 | public function getStats(\DateTime $dateFrom, \DateTime $dateTo, int $merchantID = 0) : array |
||
109 | |||
110 | |||
111 | /** |
||
112 | * @param array $params |
||
113 | * @return ProductsResultset |
||
114 | * @throws \Exception |
||
115 | */ |
||
116 | public function getProducts(array $params = []): ProductsResultset |
||
120 | |||
121 | public function getTrackingParameter() |
||
125 | } |
||
126 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..