Completed
Push — master ( 2c4859...5ed06f )
by Adolfo
14s queued 11s
created

PlanFeature::getValue()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
1
<?php
2
3
namespace Sagitarius29\LaravelSubscriptions;
4
5
use Illuminate\Database\Eloquent\Model;
6
use Illuminate\Database\Eloquent\Relations\BelongsTo;
7
8
abstract class PlanFeature extends Model
9
{
10
    protected $table = 'plan_features';
11
12
    protected $fillable = [
13
        'code', 'value', 'sort_order', 'is_consumable',
14
    ];
15
16
    public function plan(): BelongsTo
17
    {
18
        return $this->belongsTo(config('subscriptions.entities.plan'));
19
    }
20
21
    public function getValue()
22
    {
23
        return $this->value;
24
    }
25
26
    public function getCode(): string
27
    {
28
        return $this->code;
29
    }
30
}
31