Completed
Push — master ( 608c0c...58fc10 )
by Andrii
14:32
created

SimpleCalculator   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
eloc 3
c 1
b 0
f 0
dl 0
loc 7
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 2
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\billing\hiapi\tests\support\order;
12
13
use hiqdev\billing\hiapi\charge\Generalizer;
14
use hiqdev\php\billing\charge\GeneralizerInterface;
15
use hiqdev\billing\hiapi\type\TypeSemantics;
16
17
class SimpleCalculator extends \hiqdev\php\billing\tests\support\order\SimpleCalculator
0 ignored issues
show
Bug introduced by
The type hiqdev\php\billing\tests...\order\SimpleCalculator was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
18
{
19
    public function __construct(GeneralizerInterface $generalizer = null, $sale = null, $plan = null)
20
    {
21
        $generalizer = $generalizer ?: new Generalizer(new TypeSemantics());
22
23
        return parent::__construct($generalizer, $sale, $plan);
24
    }
25
}
26