TinymengException::getHeaders()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
rs 10
1
<?php
2
namespace tinymeng\uploads\exception;
3
4
use tinymeng\tools\exception\TinymengException as Exception;
5
6
/**
7
 * Class TinymengException
8
 * @package tinymeng\tools\exception
9
 * @Author: TinyMeng <[email protected]>
10
 * @Created: 2020/8/17
11
 */
12
class TinymengException extends Exception
13
{
14
    /**
15
     * @var int
16
     */
17
    private $headers;
18
19
    public function __construct($message = '', \Exception $previous = null, array $headers = [], $code = 0)
20
    {
21
        $this->headers    = $headers;
0 ignored issues
show
Documentation Bug introduced by
It seems like $headers of type array is incompatible with the declared type integer of property $headers.

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...
22
23
        parent::__construct(400,$message,$previous,$headers,$code);
24
    }
25
26
    public function getHeaders()
27
    {
28
        return $this->headers;
29
    }
30
}
31