| 1 | <?php declare(strict_types=1); |
||
| 7 | class NegativeNullableBooleanCaster implements CastsAttributes |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * Transform the attribute from the underlying model values. |
||
| 11 | * |
||
| 12 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 13 | * @param string $key |
||
| 14 | * @param mixed $value |
||
| 15 | * @param array $attributes |
||
| 16 | * @return mixed |
||
| 17 | */ |
||
| 18 | public function get($model, $key, $value, $attributes) |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Transform the attribute to its underlying model values. |
||
| 25 | * |
||
| 26 | * @param \Illuminate\Database\Eloquent\Model $model |
||
| 27 | * @param string $key |
||
| 28 | * @param mixed $value |
||
| 29 | * @param array $attributes |
||
| 30 | * @return mixed |
||
| 31 | */ |
||
| 32 | public function set($model, $key, $value, $attributes) |
||
| 36 | } |
||
| 37 |