Completed
Push — master ( 43b3fb...120a01 )
by Dominik
02:39
created

AbstractParentNode::assignParent()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 8
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
1
<?php
2
3
namespace Saxulum\ElasticSearchQueryBuilder\Node;
4
5
abstract class AbstractParentNode extends AbstractNode
6
{
7
    /**
8
     * @var AbstractNode[]|array
9
     */
10
    protected $children = [];
11
12
    /**
13
     * @param boolean $allowDefault
14
     */
15
    public function __construct($allowDefault = false)
16
    {
17
        $this->allowDefault = $allowDefault;
18
    }
19
}
20