mirror of
https://github.com/Neetpone/ponepaste.git
synced 2025-03-13 07:00:08 +01:00
28 lines
710 B
PHP
28 lines
710 B
PHP
<?php
|
|
|
|
namespace Illuminate\Contracts\Database\Eloquent;
|
|
|
|
interface DeviatesCastableAttributes
|
|
{
|
|
/**
|
|
* Increment the attribute.
|
|
*
|
|
* @param \Illuminate\Database\Eloquent\Model $model
|
|
* @param string $key
|
|
* @param mixed $value
|
|
* @param array $attributes
|
|
* @return mixed
|
|
*/
|
|
public function increment($model, string $key, $value, array $attributes);
|
|
|
|
/**
|
|
* Decrement the attribute.
|
|
*
|
|
* @param \Illuminate\Database\Eloquent\Model $model
|
|
* @param string $key
|
|
* @param mixed $value
|
|
* @param array $attributes
|
|
* @return mixed
|
|
*/
|
|
public function decrement($model, string $key, $value, array $attributes);
|
|
}
|