Completed
Push — master ( 2aab01...227846 )
by Antonio Oertel
04:04
created

InvalidArgument::isNotValidPispasep()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
namespace Brazanation\Documents\Exception;
4
5
class InvalidArgument extends \InvalidArgumentException
6
{
7 9
    public static function notEmpty($type)
8
    {
9 9
        return new static("The {$type} must not be empty");
10
    }
11
12 4
    public static function isNotValidCnpj($cnpj)
13
    {
14 4
        return new static("The CNPJ({$cnpj}) is not valid number");
15
    }
16
17 4
    public static function isNotValidCpf($cpf)
18
    {
19 4
        return new static("The CPF({$cpf}) is not valid number");
20
    }
21
22 4
    public static function isNotValidPispasep($pispasep)
23
    {
24 4
        return new static("The PisPasep({$pispasep}) is not valid number");
25
    }
26
}
27