Completed
Push — master ( 155575...f6b9aa )
by Dmitry
31:24 queued 13:49
created

Exception   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getName() 0 4 1
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
 * Exception represents a generic exception for all purposes.
12
 *
13
 * For more details and usage information on Exception, see the [guide article on handling errors](guide:runtime-handling-errors).
14
 *
15
 * @author Qiang Xue <[email protected]>
16
 * @since 2.0
17
 */
18
class Exception extends \Exception
19
{
20
    /**
21
     * @return string the user-friendly name of this exception
22
     */
23 1
    public function getName()
24
    {
25 1
        return 'Exception';
26
    }
27
}
28