Completed
Pull Request — master (#17)
by
unknown
02:09
created

EndOfPartReachedException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 2
1
<?php
2
3
namespace Goetas\Mail\ToSwiftMailParser\Exception;
4
5
class EndOfPartReachedException extends \Exception
6
{
7
    protected $data;
8
9
    public function __construct(string $data)
10
    {
11
        $this->data = $data;
12
        parent::__construct();
13
    }
14
15
    public function getData(): string
16
    {
17
        return $this->data;
18
    }
19
}
20