Completed
Push — develop ( 3de0c5...33aaf9 )
by Adam
8s
created

Model::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
rs 10
c 0
b 0
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace IBM\Watson\Common\stubs;
6
7
/**
8
 * Stub class, does nothing.
9
 */
10
class Model
11
{
12
    /**
13
     * @var string
14
     */
15
    private $params;
16
17
    /**
18
     * @param array $params
19
     */
20
    public function __construct(array $params)
21
    {
22
        $this->params = $params;
0 ignored issues
show
Documentation Bug introduced by
It seems like $params of type array is incompatible with the declared type string of property $params.

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..

Loading history...
23
    }
24
}
25