LibYAMLParser   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 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
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
 * @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