Completed
Push — master ( 156169...fab50a )
by Tony Karavasilev (Тони
05:04
created

BreachAttemptException::getFrameworkErrorCode()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
c 0
b 0
f 0
1
<?php
2
3
/**
4
 * The framework exception for marking security breach attempts and network penetrations.
5
 */
6
7
namespace CryptoManana\Exceptions;
8
9
use \CryptoManana\Core\Abstractions\ErrorHandling\AbstractException as FrameworkException;
10
11
/**
12
 * Class AccessDeniedException - The framework exception for marking security breach attempts.
13
 *
14
 * @package CryptoManana\Exceptions
15
 */
16
class BreachAttemptException extends FrameworkException
17
{
18
    /**
19
     * The framework internal error code.
20
     */
21
    const INTERNAL_CODE = 6;
22
23
    /**
24
     * The error code property storage.
25
     *
26
     * @see FrameworkException::$code The default error code.
27
     *
28
     * @var int The exception's error code.
29
     */
30
    protected $code = self::INTERNAL_CODE;
31
32
    /**
33
     * Get the default framework error code for this exception instance.
34
     *
35
     * @see UnsupportedException::INTERNAL_CODE Default error code.
36
     *
37
     * @return int The exception's error code.
38
     */
39
    public function getFrameworkErrorCode()
40
    {
41
        return static::INTERNAL_CODE; // Correct static access
42
    }
43
}
44