YamlConverter   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 12
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A convert() 0 6 1
1
<?php
2
3
namespace MLD\Converter;
4
5
use Symfony\Component\Yaml\Dumper;
6
7
/**
8
 * Class YamlConverter
9
 */
10
class YamlConverter extends AbstractConverter
11
{
12
13
    /**
14
     * @return string data converted to Yaml
15
     */
16
    public function convert()
17
    {
18
        $dumper = new Dumper();
19
        $inlineLevel = 1;
20
21
        return $dumper->dump($this->countries, $inlineLevel);
22
    }
23
}