NetworkInterface::getStats()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace Padosoft\AffiliateNetwork;
4
5
/**
6
 * Interface NetworkInterface
7
 * @package Padosoft\AffiliateNetwork
8
 */
9
interface NetworkInterface
10
{
11
    /**
12
     * @param int|null $merchantID
13
     * @param int $page
14
     * @param int $items_per_page
15
     *
16
     * @return DealsResultset
17
     */
18
    public function getDeals($merchantID,int $page=0,int $items_per_page=10 ) : DealsResultset;
19
20
    /**
21
     * @param \DateTime $dateFrom
22
     * @param \DateTime $dateTo
23
     * @param int $merchantID
0 ignored issues
show
Documentation introduced by
There is no parameter named $merchantID. Did you maybe mean $arrMerchantID?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function. It has, however, found a similar but not annotated parameter which might be a good fit.

Consider the following example. The parameter $ireland is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $ireland
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was changed, but the annotation was not.

Loading history...
24
     * @return array of Transaction
25
     */
26
    public function getSales(\DateTime $dateFrom, \DateTime $dateTo, array $arrMerchantID = array()) : array;
27
28
    /**
29
     * @param \DateTime $dateFrom
30
     * @param \DateTime $dateTo
31
     * @param int $merchantID
32
     * @return array of Stat
33
     */
34
    public function getStats(\DateTime $dateFrom, \DateTime $dateTo, int $merchantID = 0) : array ;
35
36
37
    /**
38
     * @param  array $params  this array can contains these keys
39
     *                        string      query          search string
40
     *                        string      searchType     search type (optional) (contextual or phrase)
41
     *                        string      region         limit search to region (optional)
42
     *                        int         categoryId     limit search to categorys (optional)
43
     *                        array       programId      limit search to program list of programs (optional)
44
     *                        boolean     hasImages      products with images (optional)
45
     *                        float       minPrice       minimum price (optional)
46
     *                        float       maxPrice       maximum price (optional)
47
     *                        int         adspaceId      adspace id (optional)
48
     *                        int         page           page of result set (optional)
49
     *                        int         items          items per page (optional)
50
     *
51
     * @return ProductsResultset
52
     */
53
    public function getProducts(array $params = []) : ProductsResultset;
54
55
}
56