Passed
Push — master ( 7a981c...2773c2 )
by stéphane
04:34
created

NodeList   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 10
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __debugInfo() 0 3 1
A __construct() 0 2 1
1
<?php
2
namespace Dallgoot\Yaml;
0 ignored issues
show
Coding Style introduced by
Missing file doc comment
Loading history...
3
4
use Dallgoot\Yaml as Y;
5
6
/**
0 ignored issues
show
Coding Style introduced by
Doc comment is empty
Loading history...
7
 *
8
 */
0 ignored issues
show
Coding Style introduced by
Missing @category tag in class comment
Loading history...
Coding Style introduced by
Missing @package tag in class comment
Loading history...
Coding Style introduced by
Missing @author tag in class comment
Loading history...
Coding Style introduced by
Missing @license tag in class comment
Loading history...
Coding Style introduced by
Missing @link tag in class comment
Loading history...
9
class NodeList extends \SplDoublyLinkedList
10
{
11
    public function __construct()
0 ignored issues
show
Coding Style introduced by
Missing function doc comment
Loading history...
12
    {
13
        //do nothing
14
    }
15
16
    public function __debugInfo():array
0 ignored issues
show
Coding Style introduced by
Missing function doc comment
Loading history...
17
    {
18
        return ['type' => Y::getName($this->type) , "dllist" => $this->dllist];
0 ignored issues
show
Bug Best Practice introduced by
The property type does not exist on Dallgoot\Yaml\NodeList. Did you maybe forget to declare it?
Loading history...
Bug Best Practice introduced by
The property dllist does not exist on Dallgoot\Yaml\NodeList. Did you maybe forget to declare it?
Loading history...
19
    }
20
}