Completed
Push — master ( e1d569...050b2a )
by Giancarlos
05:11
created

Reversion   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 18
ccs 0
cts 9
cp 0
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
    public function getXmlId()
23
    {
24
        $parts = [
25
            'RR',
26
            $this->getFecComunicacion()->format('Ymd'),
27
            $this->getCorrelativo(),
28
        ];
29
30
        return join('-', $parts);
31
    }
32
}