| Total Complexity | 2 |
| Total Lines | 26 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 13 | class LearnPathCategory extends Resource |
||
| 14 | { |
||
| 15 | /** |
||
| 16 | * @var CLpCategory |
||
| 17 | */ |
||
| 18 | public $object; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * @param int $id |
||
| 22 | * @param string $object |
||
| 23 | */ |
||
| 24 | public function __construct( |
||
| 25 | $id, |
||
| 26 | $object |
||
| 27 | ) { |
||
| 28 | parent::__construct($id, RESOURCE_LEARNPATH_CATEGORY); |
||
| 29 | $this->object = $object; |
||
|
|
|||
| 30 | } |
||
| 31 | |||
| 32 | /** |
||
| 33 | * Show this resource. |
||
| 34 | */ |
||
| 35 | public function show() |
||
| 39 | } |
||
| 40 | } |
||
| 41 |
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..