DeviatesCastableAttributes.php 710 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace Illuminate\Contracts\Database\Eloquent;
  3. interface DeviatesCastableAttributes
  4. {
  5. /**
  6. * Increment the attribute.
  7. *
  8. * @param \Illuminate\Database\Eloquent\Model $model
  9. * @param string $key
  10. * @param mixed $value
  11. * @param array $attributes
  12. * @return mixed
  13. */
  14. public function increment($model, string $key, $value, array $attributes);
  15. /**
  16. * Decrement the attribute.
  17. *
  18. * @param \Illuminate\Database\Eloquent\Model $model
  19. * @param string $key
  20. * @param mixed $value
  21. * @param array $attributes
  22. * @return mixed
  23. */
  24. public function decrement($model, string $key, $value, array $attributes);
  25. }