Completed
Push — master ( 266f95...98e95c )
by Asmir
05:16 queued 02:09
created

EndOfPartReachedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
c 0
b 0
f 0
ccs 4
cts 4
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Goetas\Mail\ToSwiftMailParser\Exception;
4
5
class EndOfPartReachedException extends \Exception
6
{
7
    protected $data = array();
8
9 5
    public function __construct(string $data)
10
    {
11 5
        $this->data = $data;
0 ignored issues
show
Documentation Bug introduced by
It seems like $data of type string is incompatible with the declared type array of property $data.

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...
12 5
        parent::__construct();
13 5
    }
14
15 5
    public function getData(): string
16
    {
17 5
        return $this->data;
18
    }
19
}
20