| 1 | <?php |
||
| 17 | class Adjustment extends Model |
||
| 18 | { |
||
| 19 | /** |
||
| 20 | * The attributes that should be cast to native types. |
||
| 21 | * |
||
| 22 | * @var array |
||
| 23 | */ |
||
| 24 | protected $casts = [ |
||
| 25 | 'changes' => 'array' |
||
| 26 | ]; |
||
| 27 | |||
| 28 | /** |
||
| 29 | * The attributes that aren't mass assignable. |
||
| 30 | * |
||
| 31 | * @var array |
||
| 32 | */ |
||
| 33 | protected $guarded = [ |
||
| 34 | 'adjustable_id', |
||
| 35 | 'adjustable_type' |
||
| 36 | ]; |
||
| 37 | |||
| 38 | /** |
||
| 39 | * Indicates if the model should be timestamped. |
||
| 40 | * |
||
| 41 | * @var bool |
||
| 42 | */ |
||
| 43 | public $timestamps = false; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * Get the adjustable model associated with the adjustment. |
||
| 47 | * |
||
| 48 | * @return MorphTo |
||
| 49 | */ |
||
| 50 | public function adjustable():MorphTo |
||
| 54 | } |