Completed
Pull Request — master (#110)
by Roberto
02:29
created

SignerException::digestComparisonFailed()   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 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php
2
namespace NFePHP\Common\Exception;
3
4
/**
5
 * @category   NFePHP
6
 * @package    NFePHP\Common\Exception
7
 * @copyright  Copyright (c) 2008-2014
8
 * @license    http://www.gnu.org/licenses/lesser.html LGPL v3
9
 * @author     Roberto L. Machado <linux.rlm at gmail dot com>
10
 * @link       http://github.com/nfephp-org/sped-common for the canonical source repository
11
 */
12
13
class SignerException extends \RuntimeException implements ExceptionInterface
14
{
15 2
    public static function digestComparisonFailed()
16
    {
17 2
        return new static('The XML content does not match the Digest Value.');
18
    }
19
    
20
    public static function tagNotFound($tag)
21
    {
22
        return new static("The specified tag <$tag> was not found in xml.");
23
    }
24
}
25