| Total Complexity | 1 |
| Total Lines | 27 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 21 | class SubscriptionPeriod extends Model |
||
| 22 | { |
||
| 23 | /** |
||
| 24 | * The attributes that are not mass assignable. |
||
| 25 | * |
||
| 26 | * @var array |
||
| 27 | */ |
||
| 28 | protected $guarded = []; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * The attributes that should be mutated to dates. |
||
| 32 | * |
||
| 33 | * @var array |
||
| 34 | */ |
||
| 35 | protected $dates = [ |
||
| 36 | 'start_date', 'end_date', |
||
| 37 | 'created_at', 'updated_at', |
||
| 38 | ]; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * Get the user that owns the subscription. |
||
| 42 | * |
||
| 43 | * @return object Subscription object. |
||
| 44 | */ |
||
| 45 | 1 | public function subscription() |
|
| 50 |