Issues (113)

src/bill/BillInterface.php (2 issues)

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\bill;
12
13
use DateTimeImmutable;
14
use hiqdev\php\billing\action\UsageInterval;
15
use hiqdev\php\billing\charge\ChargeInterface;
16
use hiqdev\php\billing\customer\CustomerInterface;
17
use hiqdev\php\billing\EntityInterface;
18
use hiqdev\php\billing\plan\PlanInterface;
19
use hiqdev\php\billing\requisite\RequisiteInterface;
0 ignored issues
show
The type hiqdev\php\billing\requisite\RequisiteInterface 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...
20
use hiqdev\php\billing\target\TargetInterface;
21
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...
22
use hiqdev\php\units\QuantityInterface;
23
use Money\Money;
24
25
/**
26
 * Bill Interface.
27
 *
28
 * @author Andrii Vasyliev <[email protected]>
29
 */
30
interface BillInterface extends EntityInterface
31
{
32
    public function getUniqueString(): string;
33
34
    public function getType(): TypeInterface;
35
36
    public function getTime(): DateTimeImmutable;
37
38
    public function getTarget(): ?TargetInterface;
39
40
    public function getRequisite(): ?BillRequisite;
41
42
    public function getCustomer(): CustomerInterface;
43
44
    public function getQuantity(): QuantityInterface;
45
46
    public function getSum(): Money;
47
48
    public function getPlan(): ?PlanInterface;
49
50
    /**
51
     * @return ChargeInterface[]
52
     */
53
    public function getCharges();
54
55
    public function getUsageInterval(): UsageInterval;
56
57
    public function setUsageInterval(UsageInterval $usageInterval): void;
58
}
59