PlanContract::isNotFree()
last analyzed

Size

Total Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 1
c 0
b 0
f 0
1
<?php
2
3
namespace Sagitarius29\LaravelSubscriptions\Contracts;
4
5
use Illuminate\Database\Eloquent\Model;
6
7
interface PlanContract
8
{
9
    /**
10
     * @param  string  $name
11
     * @param  string  $description
12
     * @param  int  $free_days
0 ignored issues
show
Bug introduced by
There is no parameter named $free_days. Was it maybe removed?

This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.

Consider the following example. The parameter $italy is not defined by the method finale(...).

/**
 * @param array $germany
 * @param array $island
 * @param array $italy
 */
function finale($germany, $island) {
    return "2:1";
}

The most likely cause is that the parameter was removed, but the annotation was not.

Loading history...
13
     * @param  int  $sort_order
14
     * @param  bool  $is_active
15
     * @param  bool  $is_default
16
     * @param  GroupContract|null  $group
17
     * @return Model|PlanContract
18
     */
19
    public static function create(
20
        string $name,
21
        string $description,
22
        int $sort_order,
23
        bool $is_active = false,
24
        bool $is_default = false,
25
        GroupContract $group = null
26
    ): self;
27
28
    public function intervals();
29
30
    public function isDefault(): bool;
31
32
    public function isEnabled(): bool;
33
34
    public function isFree(): bool;
35
36
    public function isNotFree(): bool;
37
38
    public function hasManyIntervals(): bool;
39
40
    public function subscriptions();
41
42
    public function setDefault();
43
44
    public function myGroup(): ?GroupContract;
45
46
    public function changeToGroup(GroupContract $group): void;
47
}
48