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

EndOfPartReachedException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 15
c 0
b 0
f 0
ccs 6
cts 6
cp 1
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getData() 0 4 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