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

MissingMethod   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 MissingMethod extends \RuntimeException
8
{
9
    /**
10
     * MissingMethod constructor.
11
     * @param mixed $instance
12
     * @param string $method
13
     */
14 1
    public function __construct($instance, $method)
15
    {
16 1
        parent::__construct(sprintf("%s does not implement method %s",
17 1
            get_class($instance),
18
            $method
19 1
        ));
20
    }
21
}