Completed
Pull Request — master (#8)
by Jeremy
06:38 queued 04:13
created

MissingMethod   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

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