Completed
Pull Request — master (#293)
by Дмитрий
05:14 queued 02:19
created

Jump   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 0
Metric Value
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 2
lcom 1
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getSubBlocks() 0 6 1
1
<?php
2
/**
3
 * @author Patsura Dmitry https://github.com/ovr <[email protected]>
4
 */
5
6
namespace PHPSA\ControlFlow\Node;
7
8
use PHPSA\ControlFlow\Block;
9
10
class Jump extends AbstractNode
11
{
12
    /**
13
     * @var Block
14
     */
15
    protected $exit;
16
17
    public function __construct(Block $exit)
18
    {
19
        $this->exit = $exit;
20
    }
21
22
    public function getSubBlocks()
23
    {
24
        return [
25
            'exit' => $this->exit
26
        ];
27
    }
28
}
29