Completed
Push — issue#804 ( 62fcb8 )
by Guilherme
04:14
created

CpfNotSubscribedToNfgException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
nc 1
nop 4
dl 0
loc 4
ccs 3
cts 3
cp 1
crap 1
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * This file is part of the login-cidadao project or it's bundles.
4
 *
5
 * (c) Guilherme Donato <guilhermednt on github>
6
 *
7
 * For the full copyright and license information, please view the LICENSE
8
 * file that was distributed with this source code.
9
 */
10
11
namespace PROCERGS\LoginCidadao\CpfVerificationBundle\Exception;
12
13
use Throwable;
14
15
class CpfNotSubscribedToNfgException extends \RuntimeException
16
{
17
    public const ERROR_CODE = 'cpf_not_subscribed_to_nfg';
18
19
    /** @var string */
20
    private $cpf;
21
22 1
    public function __construct(string $cpf, string $message = "", int $code = 0, Throwable $previous = null)
23
    {
24 1
        $this->cpf = $cpf;
25 1
        parent::__construct($message, $code, $previous);
26 1
    }
27
28
    /**
29
     * @return string
30
     */
31 1
    public function getCpf(): string
32
    {
33 1
        return $this->cpf;
34
    }
35
}
36