Header   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 18
ccs 0
cts 8
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A get() 0 8 1
1
<?php
2
3
namespace NFePHP\MDFe\Factories;
4
5
/**
6
 * @author     Cleiton Perin <cperin20 at gmail dot com>
7
 * @package    NFePHP\MDFe\Factories
8
 * @copyright  Copyright (c) 2008-2019
9
 * @license    http://www.gnu.org/licenses/lesser.html LGPL v3
10
 * @category   NFePHP
11
 * @link       http://github.com/nfephp-org/nfephp for the canonical source repository
12
 */
13
class Header
14
{
15
    /**
16
     * Return header
17
     * @param string $namespace
18
     * @param string $cUF
19
     * @param string $version
20
     * @return string
21
     */
22
    public static function get($namespace, $cUF, $version)
23
    {
24
        return "<mdfeCabecMsg "
25
            . "xmlns=\"$namespace\">"
26
            . "<cUF>$cUF</cUF>"
27
            . "<versaoDados>$version</versaoDados>"
28
            . "</mdfeCabecMsg>";
29
    }
30
}
31