lib/3rdParty/composer/illuminate/contracts/Database/Eloquent/SerializesCastableAttributes.php
raw symbols SCIP| 1 | <?php |
| 2 | |
| 3 | namespace Illuminate\Contracts\Database\Eloquent; |
| 4 | |
| 5 | use Illuminate\Database\Eloquent\Model; |
| 6 | |
| 7 | interface SerializesCastableAttributes |
| 8 | { |
| 9 | /** |
| 10 | * Serialize the attribute when converting the model to an array. |
| 11 | * |
| 12 | * @param \Illuminate\Database\Eloquent\Model $model |
| 13 | * @param string $key |
| 14 | * @param mixed $value |
| 15 | * @param array<string, mixed> $attributes |
| 16 | * @return mixed |
| 17 | */ |
| 18 | public function serialize(Model $model, string $key, mixed $value, array $attributes); |
| 19 | } |