| Total Complexity | 5 |
| Total Lines | 50 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 7 | class Visitor extends AbstractVisitor |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * @var callable|null |
||
| 12 | */ |
||
| 13 | protected $enterFunction; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @var callable|null |
||
| 17 | */ |
||
| 18 | protected $leaveFunction; |
||
| 19 | |||
| 20 | /** |
||
| 21 | * TestableVisitor constructor. |
||
| 22 | * @param callable|null $enterFunction |
||
| 23 | * @param callable|null $leaveFunction |
||
| 24 | */ |
||
| 25 | public function __construct(?callable $enterFunction = null, ?callable $leaveFunction = null) |
||
| 29 | } |
||
| 30 | |||
| 31 | /** |
||
| 32 | * @inheritdoc |
||
| 33 | */ |
||
| 34 | public function enterNode( |
||
| 43 | } |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @inheritdoc |
||
| 47 | */ |
||
| 48 | public function leaveNode( |
||
| 59 |