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

Asserter   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
ccs 2
cts 2
cp 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A visitModel() 0 4 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