LibYAMLParser::parse()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
eloc 2
nc 1
nop 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
 * @codeCoverageIgnoreFile
18
 */
19
class LibYAMLParser implements YAMLParserInterface {
20
21
    /**
22
     * {@inheritdoc}
23
     */
24
    public function parse($yamlString) {
25
        return yaml_parse($yamlString);
26
    }
27
28
}
29