Completed
Branch feature/pre-split (c69968)
by Anton
21:25
created

OutputNode::__destruct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
nc 1
nop 0
dl 0
loc 5
rs 9.4285
c 0
b 0
f 0
1
<?php
2
/**
3
 * components
4
 *
5
 * @author    Wolfy-J
6
 */
7
namespace Spiral\ORM\Entities\Nodes;
8
9
/**
10
 * Provides ability to fetch node context.
11
 */
12
abstract class OutputNode extends AbstractNode
13
{
14
    /**
15
     * Array used to aggregate all nested node results in a form of tree.
16
     *
17
     * @var array
18
     */
19
    protected $result = [];
20
21
    /**
22
     * Get resulted tree.
23
     *
24
     * @return array
25
     */
26
    public function getResult(): array
27
    {
28
        return $this->result;
29
    }
30
31
    /**
32
     * Destructing.
33
     */
34
    public function __destruct()
35
    {
36
        $this->result = [];
37
        parent::__destruct();
38
    }
39
}