Completed
Pull Request — master (#8)
by Jeremy
04:54
created

MissingProperty   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 15
wmc 1
lcom 0
cbo 0
ccs 5
cts 5
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
4
namespace Scientist\SideEffects;
5
6
7
class MissingProperty extends \RuntimeException
8
{
9
    /**
10
     * MissingProperty constructor.
11
     * @param string $instance
12
     * @param string $property
13
     */
14 2
    public function __construct($instance, $property)
15
    {
16 2
        parent::__construct(sprintf("%s does not implement property %s",
17 2
            get_class($instance),
18
            $property
19 2
            ));
20
    }
21
}