Completed
Push — master ( c5a98a...b2deb1 )
by Dominik
02:16
created

AbstractNode   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 30
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 5
Bugs 1 Features 0
Metric Value
wmc 1
c 5
b 1
f 0
lcom 0
cbo 0
dl 0
loc 30
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A allowNull() 0 4 1
serialize() 0 1 ?
1
<?php
2
3
namespace Saxulum\ElasticSearchQueryBuilder\Node;
4
5
abstract class AbstractNode
6
{
7
    /**
8
     * @var string
9
     */
10
    const classname = __CLASS__;
11
12
    /**
13
     * @var AbstractParentNode
14
     */
15
    protected $parent;
16
17
    /**
18
     * @var boolean
19
     */
20
    protected $allowNull;
21
22
    /**
23
     * @return boolean
24
     */
25
    public function allowNull()
26
    {
27
        return $this->allowNull;
28
    }
29
30
    /**
31
     * @return \stdClass|array|string|float|integer|boolean|null
32
     */
33
    abstract public function serialize();
34
}
35