Total Complexity | 4 |
Total Lines | 47 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php namespace Mbh\Tree\Traits; |
||
11 | trait Node |
||
12 | { |
||
13 | /** |
||
14 | * @var mixed |
||
15 | */ |
||
16 | private $value; |
||
17 | |||
18 | /** |
||
19 | * parent |
||
20 | * |
||
21 | * @var NodeInterface |
||
|
|||
22 | * @access private |
||
23 | */ |
||
24 | private $parent; |
||
25 | |||
26 | /** |
||
27 | * @var NodeInterface[] |
||
28 | */ |
||
29 | private $children = []; |
||
30 | |||
31 | /** |
||
32 | * @param mixed $value |
||
33 | * @param NodeInterface[] $children |
||
34 | */ |
||
35 | public function __construct($value = null, array $children = []) |
||
36 | { |
||
37 | $this->setValue($value); |
||
38 | if (!empty($children)) { |
||
39 | $this->setChildren($children); |
||
40 | } |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * {@inheritdoc} |
||
45 | */ |
||
46 | public function setValue($value) |
||
47 | { |
||
48 | $this->value = $value; |
||
49 | return $this; |
||
50 | } |
||
51 | |||
52 | /** |
||
53 | * {@inheritdoc} |
||
54 | */ |
||
55 | public function getValue() |
||
58 | } |
||
59 | } |
||
60 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths