Completed
Push — master ( 5eb4ff...48745e )
by Zoltán
11:37
created

LibYAMLParser   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 10
ccs 0
cts 3
cp 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A parse() 0 3 1
1
<?php namespace BuildR\TestTools\DataSetLoader\YAML\Parser;
2
3
/**
4
 * YAML Parser based on LibYaml extension
5
 * Requires LibYaml PHP extension to be installed
6
 *
7
 * BuildR PHP Framework
8
 *
9
 * @author Zoltán Borsos <[email protected]>
10
 * @package TestTools
11
 * @subpackage DataSetLoader\YAML\Parser
12
 *
13
 * @copyright    Copyright 2016, Zoltán Borsos.
14
 * @license      https://github.com/BuildrPHP/Test-Tools/blob/master/LICENSE.md
15
 * @link         https://github.com/BuildrPHP/Test-Tools
16
 */
17
class LibYAMLParser implements YAMLParserInterface {
18
19
    /**
20
     * {@inheritdoc}
21
     */
22
    public function parse($yamlString) {
23
        return yaml_parse($yamlString);
24
    }
25
26
}
27