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

CpfNotSubscribedToNfgException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 19
ccs 6
cts 6
cp 1
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCpf() 0 3 1
A __construct() 0 4 1
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