Completed
Push — 2.1 ( c952e8...98ed49 )
by Carsten
10:00
created

UnknownMethodException::getName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 0
cts 2
cp 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
/**
3
 * @link http://www.yiiframework.com/
4
 * @copyright Copyright (c) 2008 Yii Software LLC
5
 * @license http://www.yiiframework.com/license/
6
 */
7
8
namespace yii\base;
9
10
/**
11
 * UnknownMethodException represents an exception caused by accessing an unknown object method.
12
 *
13
 * @author Qiang Xue <[email protected]>
14
 * @since 2.0
15
 */
16
class UnknownMethodException extends \BadMethodCallException
17
{
18
    /**
19
     * @return string the user-friendly name of this exception
20
     */
21
    public function getName()
22
    {
23
        return 'Unknown Method';
24
    }
25
}
26