SearchLimitException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 1
dl 0
loc 15
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: oleksiimylotskyi
5
 * Date: 2/8/16
6
 * Time: 20:14
7
 */
8
9
namespace KWTClient\Exception;
10
11
12
class SearchLimitException extends ApiException
13
{
14
    const EXCEPTION_CODE = 7;
15
16
    /**
17
     * SearchLimitException constructor.
18
     *
19
     * @param string $message
20
     * @param \Exception $previous
0 ignored issues
show
Bug introduced by
There is no parameter named $previous. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

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

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

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

Loading history...
21
     */
22
    public function __construct($message)
23
    {
24
        parent::__construct($message, self::EXCEPTION_CODE);
25
    }
26
}
27