Completed
Push — master ( 081071...48c049 )
by Enrico
01:58
created

InvalidRawDataWarning   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A getData() 0 3 1
1
<?php
2
namespace BOTK\Exception;
3
4
class InvalidRawDataWarning extends Warning
5
{
6
	protected  $data;
7
	
8
	// Redefine the exception adding an extra paramether
9
    public function __construct($message,  $data, $code = 0, Exception $previous = null) {
10
        $this->data = $data;
11
    
12
        // make sure everything is assigned properly
13
        parent::__construct($message, $code, $previous);
14
    }
15
16
17
    public function getData() {
18
        return $this->data;
19
    }
20
}
21