Issues (116)

src/charge/GeneralizerInterface.php (1 issue)

Labels
Severity
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-2020, HiQDev (http://hiqdev.com/)
9
 */
10
11
namespace hiqdev\php\billing\charge;
12
13
use hiqdev\php\billing\bill\BillInterface;
14
use hiqdev\php\billing\target\TargetInterface;
15
use hiqdev\php\billing\type\TypeInterface;
0 ignored issues
show
The type hiqdev\php\billing\type\TypeInterface 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...
16
17
/**
18
 * @author Andrii Vasyliev <[email protected]>
19
 */
20
interface GeneralizerInterface
21
{
22
    /**
23
     * Creates generalized Bill from given charge.
24
     */
25
    public function createBill(ChargeInterface $charge): BillInterface;
26
27
    /**
28
     * Finds less general (more specific) type from given ones.
29
     */
30
    public function specializeType(TypeInterface $first, TypeInterface $other): TypeInterface;
31
32
    /**
33
     * Finds less general (more specific) target from given ones.
34
     */
35
    public function specializeTarget(TargetInterface $first, TargetInterface $other): TargetInterface;
36
}
37