Completed
Push — master ( f0c93a...888950 )
by Andrii
05:26
created

Asserter::visitModel()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1
cc 1
eloc 2
nc 1
nop 3
crap 1
1
<?php
2
/**
3
 * PHP Billing Library
4
 *
5
 * @link      https://github.com/hiqdev/php-billing
6
 * @package   php-billing
7
 * @license   BSD-3-Clause
8
 * @copyright Copyright (c) 2017-2018, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\billing\formula;
12
13
use Hoa\Ruler\Model;
14
15
/**
16
 * @author Andrii Vasyliev <[email protected]>
17
 */
18
class Asserter extends \Hoa\Ruler\Visitor\Asserter
19
{
20 1
    public function visitModel(Model $element, &$handle = null, $eldnah = null)
21
    {
22 1
        return $element->getExpression()->accept($this, $handle, $eldnah);
23
    }
24
}
25