NotImplementedException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 17
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 17
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 8 1
1
<?php
2
3
/**
4
 * This file is part of the Cubiche package.
5
 *
6
 * Copyright (c) Cubiche
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
namespace Cubiche\Domain\System\Exception;
12
13
/**
14
 * Not Implemented Exception.
15
 *
16
 * @author Karel Osorio Ramírez <[email protected]>
17
 */
18
class NotImplementedException extends \RuntimeException
19
{
20
    /**
21
     * @param string     $className
22
     * @param string     $method
23
     * @param int        $code
24
     * @param \Exception $previous
25
     */
26
    public function __construct($className, $method, $code = 0, $previous = null)
27
    {
28
        parent::__construct(
29
            \sprintf('The %s::%s method has not been implemented', $className, $method),
30
            $code,
31
            $previous
32
        );
33
    }
34
}
35