Completed
Push — master ( 605cf4...2dcac2 )
by Richard
05:16
created

ASTVisitor::leaveNode()   B

Complexity

Conditions 6
Paths 2

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 6

Importance

Changes 0
Metric Value
dl 0
loc 10
ccs 8
cts 8
cp 1
rs 8.8571
c 0
b 0
f 0
cc 6
eloc 7
nc 2
nop 1
crap 6
1
<?php
2
/******************************************************************************
3
 * An implementation of dicto (scg.unibe.ch/dicto) in and for PHP.
4
 *
5
 * Copyright (c) 2016, 2015 Richard Klees <[email protected]>
6
 *
7
 * This software is licensed under The MIT License. You should have received
8
 * a copy of the license along with the code.
9
 */
10
11
namespace Lechimp\Dicto\Indexer;
12
13
use Lechimp\Dicto\Variables\Variable;
14
use PhpParser\Node as N;
15
16
/**
17
 * Interface to implement Rules that visit the AST.
18
 *
19
 * ATTENTION: Do not expect the jump labels to be called in any specific order,
20
 * i.e. be aware that using internal state in your implementation might wreak
21
 * havoc when used in conjunction with the jump labels.
22
 */
23
interface ASTVisitor {
24
    /**
25
     * Return (class => method) mapping for Nodes the Visitor is interested in
26
     * and the corresponding handlers.
27
     *
28
     * @return  array<string, string>
0 ignored issues
show
Documentation introduced by
The doc-type array<string, could not be parsed: Expected ">" at position 5, but found "end of type". (view supported doc-types)

This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.

Loading history...
29
     */
30
    public function visitorJumpLabels();
31
}
32