Error::missingMethod()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 7
rs 9.4286
c 1
b 0
f 0
cc 1
eloc 3
nc 1
nop 2
1
<?php
2
3
namespace Tacone\Bees\Helper;
4
5
class Error
6
{
7
    public static function missingMethod($object, $methodName)
8
    {
9
        // the method does not exist or it hasn't been exposed
10
        return new \BadMethodCallException(
11
            'Method \''.get_class($object)."::$methodName' does not exist"
12
        );
13
    }
14
}
15