Test Failed
Push — master ( 3b4c09...efb6fb )
by Richard
02:50
created

Root   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A lines() 0 3 1
1
<?php
2
/******************************************************************************
3
 * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
4
 *
5
 * Copyright (c) 2016, 2015 Richard Klees <[email protected]>
6
 *
7
 * This software is licensed under The MIT License. You should have received
8
 * a copy of the license along with the code.
9
 */
10
11
namespace Lechimp\Dicto\Definition\AST;
12
13
/**
14
 * Root node of the AST.
15
 */
16
class Root extends Node {
17
    /**
18
     * @var Line[]
19
     */
20
    protected $lines; 
21
22
    public function __construct(array $lines) {
23
        $this->lines = array_map(function(Line $l) {
24
            return $l;
25
        }, $lines);
26
    }
27
28
    /**
29
     * @return  Line[]
30
     */
31
    public function lines() {
32
        return $this->lines;
33
    }
34
}
35