@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -use Illuminate\Support\Facades\Schema; |
|
4 | -use Illuminate\Database\Schema\Blueprint; |
|
5 | 3 | use Illuminate\Database\Migrations\Migration; |
4 | +use Illuminate\Database\Schema\Blueprint; |
|
5 | +use Illuminate\Support\Facades\Schema; |
|
6 | 6 | |
7 | 7 | class CreateSubscriptionsTables extends Migration |
8 | 8 | { |
@@ -9,7 +9,6 @@ discard block |
||
9 | 9 | /** |
10 | 10 | * @param string $name |
11 | 11 | * @param string $description |
12 | - * @param int $free_days |
|
13 | 12 | * @param int $sort_order |
14 | 13 | * @param bool $is_active |
15 | 14 | * @param bool $is_default |
@@ -37,11 +36,23 @@ discard block |
||
37 | 36 | |
38 | 37 | public function hasManyIntervals(): bool; |
39 | 38 | |
39 | + /** |
|
40 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
41 | + */ |
|
40 | 42 | public function subscriptions(); |
41 | 43 | |
44 | + /** |
|
45 | + * @return void |
|
46 | + */ |
|
42 | 47 | public function setDefault(); |
43 | 48 | |
49 | + /** |
|
50 | + * @return \Sagitarius29\LaravelSubscriptions\Entities\Group |
|
51 | + */ |
|
44 | 52 | public function myGroup(): ?GroupContract; |
45 | 53 | |
54 | + /** |
|
55 | + * @return void |
|
56 | + */ |
|
46 | 57 | public function changeToGroup(GroupContract $group): void; |
47 | 58 | } |
@@ -13,7 +13,6 @@ |
||
13 | 13 | * @param string $code |
14 | 14 | * @param bool|int $value |
15 | 15 | * @param int $sortOrder |
16 | - * @param bool $isConsumable |
|
17 | 16 | * @return Model |
18 | 17 | */ |
19 | 18 | public static function make( |
@@ -23,7 +23,6 @@ |
||
23 | 23 | /** |
24 | 24 | * @param string $name |
25 | 25 | * @param string $description |
26 | - * @param int $free_days |
|
27 | 26 | * @param int $sort_order |
28 | 27 | * @param bool $is_enabled |
29 | 28 | * @param bool $is_default |
@@ -2,10 +2,10 @@ |
||
2 | 2 | |
3 | 3 | namespace Sagitarius29\LaravelSubscriptions; |
4 | 4 | |
5 | -use Illuminate\Database\Eloquent\Model; |
|
6 | 5 | use Illuminate\Database\Eloquent\Builder; |
7 | -use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract; |
|
6 | +use Illuminate\Database\Eloquent\Model; |
|
8 | 7 | use Sagitarius29\LaravelSubscriptions\Contracts\GroupContract; |
8 | +use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract; |
|
9 | 9 | use Sagitarius29\LaravelSubscriptions\Entities\Group; |
10 | 10 | use Sagitarius29\LaravelSubscriptions\Exceptions\PlanErrorException; |
11 | 11 | use Sagitarius29\LaravelSubscriptions\Traits\HasFeatures; |
@@ -4,7 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Database\Eloquent\Model; |
6 | 6 | use Illuminate\Database\Eloquent\Relations\HasMany; |
7 | -use Sagitarius29\LaravelSubscriptions\Exceptions\PlanErrorException; |
|
8 | 7 | use Sagitarius29\LaravelSubscriptions\PlanFeature; |
9 | 8 | |
10 | 9 | trait HasFeatures |
@@ -79,7 +79,7 @@ |
||
79 | 79 | } |
80 | 80 | |
81 | 81 | /** |
82 | - * @return SubscriptionContact|Model|null |
|
82 | + * @return PlanIntervalContract |
|
83 | 83 | */ |
84 | 84 | public function getActiveSubscription(): ?SubscriptionContact |
85 | 85 | { |
@@ -5,11 +5,11 @@ |
||
5 | 5 | use Carbon\Carbon; |
6 | 6 | use Illuminate\Database\Eloquent\Model; |
7 | 7 | use Illuminate\Database\Eloquent\Relations\MorphMany; |
8 | -use Sagitarius29\LaravelSubscriptions\Entities\PlanInterval; |
|
9 | -use Sagitarius29\LaravelSubscriptions\Entities\Subscription; |
|
10 | 8 | use Sagitarius29\LaravelSubscriptions\Contracts\PlanContract; |
11 | -use Sagitarius29\LaravelSubscriptions\Contracts\SubscriptionContact; |
|
12 | 9 | use Sagitarius29\LaravelSubscriptions\Contracts\PlanIntervalContract; |
10 | +use Sagitarius29\LaravelSubscriptions\Contracts\SubscriptionContact; |
|
11 | +use Sagitarius29\LaravelSubscriptions\Entities\PlanInterval; |
|
12 | +use Sagitarius29\LaravelSubscriptions\Entities\Subscription; |
|
13 | 13 | use Sagitarius29\LaravelSubscriptions\Exceptions\SubscriptionErrorException; |
14 | 14 | use Sagitarius29\LaravelSubscriptions\PlanFeature; |
15 | 15 |