Passed
Push — master ( 39eaf0...d31fdd )
by Nikita
02:37 queued 01:05
created

SignatureError   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
eloc 5
c 2
b 0
f 0
dl 0
loc 12
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getSignatureCode() 0 3 1
A __construct() 0 4 1
1
<?php
2
3
namespace nikserg\cryptoprocli\Exception;
4
5
use Throwable;
6
7
/**
8
 * Ошибка в подписи
9
 *
10
 * @package nikserg\cryptoprocli\Exception
11
 */
12
class SignatureError extends \Exception
13
{
14
    protected $signatureCode;
15
    public function __construct($message = "", $signatureCode = null, $code = 0, Throwable $previous = null)
16
    {
17
        $this->signatureCode = $signatureCode;
18
        parent::__construct($message, $code, $previous);
19
    }
20
21
    public function getSignatureCode()
22
    {
23
        return $this->signatureCode;
24
    }
25
}
26