Completed
Push — master ( 0443ac...f80d0b )
by Filipe
09:19 queued 13s
created

PhpYmlParser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 0
dl 0
loc 13
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A parse() 0 4 1
A parseFile() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of WebStack
5
 *
6
 * For the full copyright and license information, please view the LICENSE
7
 * file that was distributed with this source code.
8
 */
9
10
namespace Slick\WebStack\Router\Parsers;
11
12
use Slick\WebStack\Router\RoutesParser;
13
14
/**
15
 * PhpYmlParser
16
 *
17
 * @package Slick\WebStack\Router\Parsers
18
 */
19
final class PhpYmlParser implements RoutesParser
20
{
21
22
    public function parse(string $content)
23
    {
24
        return yaml_parse($content);
25
    }
26
27
    public function parseFile(string $filename)
28
    {
29
        return yaml_parse_file($filename);
30
    }
31
}