Completed
Push — master ( 2d40c2...8bc0f0 )
by Giancarlos
04:17
created

VoidedBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
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 14
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A build() 0 4 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 10
    public function build(DocumentInterface $document)
27
    {
28 10
        return $this->render('voided.xml.twig', $document);
29
    }
30
}