Completed
Push — master ( 46b7df...4cf19c )
by Emily
02:25
created

PropertyNotWritableException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 6

Duplication

Lines 10
Ratio 100 %

Code Coverage

Tests 5
CRAP Score 1

Importance

Changes 0
Metric Value
dl 10
loc 10
ccs 5
cts 5
cp 1
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 6
nc 1
nop 3
crap 1
1
<?php
2
3
namespace Spaark\CompositeUtils\Exception;
4
5
use \Exception;
6
7 View Code Duplication
class PropertyNotWritableException extends Exception
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
8
{
9 1
    public function __construct($class, $property, $previous = null)
10
    {
11 1
        parent::__construct
12
        (
13
              'Tried to write to unwritable property '
14 1
            . $class . '::$' . $property,
15 1
            0,
16
            $previous
17
        );
18 1
    }
19
}
20