NotImplementedException::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
dl 0
loc 8
rs 9.4285
c 1
b 0
f 0
cc 1
eloc 5
nc 1
nop 4
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