| Total Complexity | 2 |
| Total Lines | 44 |
| Duplicated Lines | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | class Coupon extends Model |
||
| 12 | { |
||
| 13 | use CrudTrait; |
||
|
|
|||
| 14 | |||
| 15 | protected $guarded = ['id']; |
||
| 16 | |||
| 17 | /* |
||
| 18 | |-------------------------------------------------------------------------- |
||
| 19 | | FUNCTIONS |
||
| 20 | |-------------------------------------------------------------------------- |
||
| 21 | */ |
||
| 22 | |||
| 23 | /* |
||
| 24 | |-------------------------------------------------------------------------- |
||
| 25 | | RELATIONS |
||
| 26 | |-------------------------------------------------------------------------- |
||
| 27 | */ |
||
| 28 | |||
| 29 | /* |
||
| 30 | |-------------------------------------------------------------------------- |
||
| 31 | | SCOPES |
||
| 32 | |-------------------------------------------------------------------------- |
||
| 33 | */ |
||
| 34 | |||
| 35 | /* |
||
| 36 | |-------------------------------------------------------------------------- |
||
| 37 | | ACCESORS |
||
| 38 | |-------------------------------------------------------------------------- |
||
| 39 | */ |
||
| 40 | |||
| 41 | public function getPriceAttribute($value) |
||
| 44 | } |
||
| 45 | |||
| 46 | /* |
||
| 47 | |-------------------------------------------------------------------------- |
||
| 48 | | MUTATORS |
||
| 49 | |-------------------------------------------------------------------------- |
||
| 50 | */ |
||
| 51 | |||
| 52 | public function setPriceAttribute($value) |
||
| 57 |