| Total Complexity | 2 |
| Total Lines | 23 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | class Availability extends Model |
||
| 13 | { |
||
| 14 | use HasTraitsWithCasts, HasPullAt; |
||
| 15 | |||
| 16 | protected $primaryKey = 'property_id'; |
||
| 17 | |||
| 18 | public $incrementing = false; |
||
| 19 | |||
| 20 | protected $guarded = []; |
||
| 21 | |||
| 22 | protected $casts = [ |
||
| 23 | 'availability' => \JsonFieldCast\Casts\ArrayOfJsonObjectsField::class, |
||
| 24 | 'day_availability' => \JsonFieldCast\Casts\SimpleJsonField::class, |
||
| 25 | ]; |
||
| 26 | |||
| 27 | public function getTable(): string |
||
| 30 | } |
||
| 31 | |||
| 32 | public function property(): BelongsTo |
||
| 37 |