Issues (113)

derivative/ChargeDerivativeQueryInterface.php (1 issue)

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\derivative;
12
13
use hiqdev\php\billing\action\ActionInterface;
14
use hiqdev\php\billing\bill\BillInterface;
15
use hiqdev\php\billing\charge\ChargeInterface;
16
use hiqdev\php\billing\price\PriceInterface;
17
use hiqdev\php\billing\target\TargetInterface;
18
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...
19
use hiqdev\php\units\QuantityInterface;
20
use Money\Money;
21
22
/**
23
 * Interface ChargeDerivativeQueryInterface represents a query to build
24
 * a new charge with [[ChargeDerivativeInterface]], but with some changes
25
 * of properties.
26
 *
27
 * @author Dmytro Naumenko <[email protected]>
28
 */
29
interface ChargeDerivativeQueryInterface
30
{
31
    public function changeId($id): self;
32
33
    public function changeType(TypeInterface $type): self;
34
35
    public function changeTarget(TargetInterface $target): self;
36
37
    public function changeAction(ActionInterface $action): self;
38
39
    public function changePrice(PriceInterface $price): self;
40
41
    public function changeUsage(QuantityInterface $quantity): self;
42
43
    public function changeSum(Money $sum): self;
44
45
    public function changeBill(BillInterface $bill): self;
46
47
    public function changeComment(?string $comment): self;
48
49
    public function changeParent(?ChargeInterface $charge): self;
50
51
    public function getParent(): ?ChargeInterface;
52
53
    public function get(string $name, $default = null);
54
55
    /**
56
     * @return string|int|null
57
     */
58
    public function getId();
59
60
    public function getUsage(): ?QuantityInterface;
61
62
    public function getType(): ?TypeInterface;
63
64
    public function getTarget(): ?TargetInterface;
65
66
    public function getComment(): ?string;
67
68
    public function getSum(): ?Money;
69
70
    public function getAction(): ?ActionInterface;
71
72
    public function getBill(): ?BillInterface;
73
74
    public function getPrice(): ?PriceInterface;
75
76
    public function isChanged(string $field): bool;
77
}
78