Issues (113)

src/charge/ChargeInterface.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\action\ActionInterface;
14
use hiqdev\php\billing\bill\BillInterface;
15
use hiqdev\php\billing\price\PriceInterface;
16
use hiqdev\php\billing\target\TargetInterface;
17
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...
18
use hiqdev\php\units\QuantityInterface;
19
use Money\Money;
20
21
/**
22
 * @author Andrii Vasyliev <[email protected]>
23
 */
24
interface ChargeInterface extends \JsonSerializable
25
{
26
    /**
27
     * @return int|string
28
     */
29
    public function getId();
30
31
    public function hasId(): bool;
32
33
    public function setId($id): ChargeInterface;
34
35
    public function getType(): TypeInterface;
36
37
    public function getTarget(): TargetInterface;
38
39
    public function getAction(): ActionInterface;
40
41
    public function getPrice(): ?PriceInterface;
42
43
    public function getSum(): Money;
44
45
    public function getBill(): ?BillInterface;
46
47
    public function getUsage(): QuantityInterface;
48
49
    public function setComment(string $comment): self;
50
51
    /**
52
     * @return string
53
     */
54
    public function getComment(): ?string;
55
56
    public function setFinished(): self;
57
58
    public function getParent(): ?ChargeInterface;
59
60
    public function overwriteParent(ChargeInterface $parent): self;
61
62
    /**
63
     * Provides unique string.
64
     * Can be used to compare or aggregate charges.
65
     */
66
    public function getUniqueString(): string;
67
}
68