Completed
Push — master ( 0a5559...4dd4d6 )
by Giancarlos
04:06
created

Reversion   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getXmlId() 0 10 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Administrador
5
 * Date: 08/08/2017
6
 * Time: 04:20 PM
7
 */
8
9
namespace Greenter\Model\Voided;
10
11
/**
12
 * Class Reversion
13
 * @package Greenter\Model\Voided
14
 */
15
class Reversion extends Voided
16
{
17
    /**
18
     * Get Id Xml.
19
     *
20
     * @return string
21
     */
22 6
    public function getXmlId()
23
    {
24
        $parts = [
25 6
            'RR',
26 6
            $this->getFecComunicacion()->format('Ymd'),
27 6
            $this->getCorrelativo(),
28 6
        ];
29
30 6
        return join('-', $parts);
31
    }
32
}