Completed
Push — master ( a0d808...22db96 )
by Giancarlos
03:50
created

VoidedBuilder::build()   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 1
crap 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: Giansalex
5
 * Date: 01/10/2017
6
 * Time: 13:47
7
 */
8
9
namespace Greenter\Xml\Builder;
10
11
use Greenter\Model\DocumentInterface;
12
13
/**
14
 * Class VoidedBuilder
15
 * @package Greenter\Xml\Builder
16
 */
17
class VoidedBuilder extends TwigBuilder implements BuilderInterface
18
{
19
20
    /**
21
     * Create xml for document.
22
     *
23
     * @param DocumentInterface $document
24
     * @return string
25
     */
26 18
    public function build(DocumentInterface $document)
27
    {
28 18
        return $this->render('voided.xml.twig', $document);
29
    }
30
}