Test Failed
Push — master ( 05d675...f4e7d7 )
by Giancarlos
04:02
created

DespatchBuilder   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
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 13
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:46
7
 */
8
9
namespace Greenter\Xml\Builder;
10
11
use Greenter\Model\DocumentInterface;
12
13
/**
14
 * Class DespatchBuilder
15
 * @package Greenter\Xml\Builder
16
 */
17
class DespatchBuilder extends TwigBuilder implements BuilderInterface
18
{
19
    /**
20
     * Create xml for document.
21
     *
22
     * @param DocumentInterface $document
23
     * @return string
24
     */
25 2
    public function build(DocumentInterface $document)
26
    {
27 2
        return $this->render('despatch.html.twig', $document);
28
    }
29
}