1 | <?php |
||
13 | abstract class Plan extends Model implements PlanContract |
||
14 | { |
||
15 | use HasFeatures; |
||
16 | |||
17 | protected $table = 'plans'; |
||
18 | |||
19 | protected $fillable = [ |
||
20 | 'name', 'description', 'free_days', 'sort_order', 'is_enabled', 'is_default', 'group', |
||
21 | ]; |
||
22 | |||
23 | /** |
||
24 | * @param string $name |
||
25 | * @param string $description |
||
26 | * @param int $free_days |
||
|
|||
27 | * @param int $sort_order |
||
28 | * @param bool $is_enabled |
||
29 | * @param bool $is_default |
||
30 | * @param GroupContract|null $group |
||
31 | * @return Model|PlanContract |
||
32 | */ |
||
33 | public static function create( |
||
60 | |||
61 | private static function defaultExists(GroupContract $group = null): bool |
||
70 | |||
71 | public function scopeByGroup(Builder $q, GroupContract $group = null) |
||
75 | |||
76 | public function scopeIsDefault(Builder $q) |
||
80 | |||
81 | public function scopeEnabled(Builder $q) |
||
85 | |||
86 | public function scopeDisabled(Builder $q) |
||
90 | |||
91 | public function isDefault(): bool |
||
95 | |||
96 | public function isEnabled(): bool |
||
100 | |||
101 | public function isDisabled(): bool |
||
105 | |||
106 | public function isFree(): bool |
||
110 | |||
111 | public function intervals() |
||
116 | |||
117 | public function isNotFree(): bool |
||
121 | |||
122 | public function hasManyIntervals(): bool |
||
126 | |||
127 | public function setFree() |
||
131 | |||
132 | public function setDefault() |
||
150 | |||
151 | public function myGroup(): ?GroupContract |
||
155 | |||
156 | public function changeToGroup(GroupContract $group): void |
||
166 | |||
167 | public function getName() |
||
171 | |||
172 | public function getDescription() |
||
176 | |||
177 | public function delete() |
||
185 | |||
186 | public function subscriptions() |
||
190 | } |
||
191 |
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 methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.