Issues (113)

src/plan/PlanInterface.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\plan;
12
13
use hiqdev\php\billing\customer\CustomerInterface;
14
use hiqdev\php\billing\EntityInterface;
15
use hiqdev\php\billing\Exception\CannotReassignException;
16
use hiqdev\php\billing\price\PriceInterface;
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
19
/**
20
 * Plan Interface.
21
 *
22
 * @author Andrii Vasyliev <[email protected]>
23
 */
24
interface PlanInterface extends EntityInterface
25
{
26
    /**
27
     * @return int|string|null
28
     */
29
    public function getId();
30
31
    /**
32
     * Globally unique ID.
33
     * @return int|string
34
     */
35
    public function getUniqueId();
36
37
    /**
38
     * @return PriceInterface[]
39
     */
40
    public function getPrices(): array;
41
    public function hasPrices(): bool;
42
43
    /**
44
     * @param PriceInterface[] $prices
45
     * @throws CannotReassignException when prices are already set
46
     */
47
    public function setPrices(array $prices): void;
48
    public function getSeller(): ?CustomerInterface;
49
    public function getName(): string;
50
    public function setName(string $name): void;
51
    public function getType(): ?TypeInterface;
52
    public function getParentId(): ?int;
53
    public function setParentId(int $parentId): void;
54
}
55