21 lines
353 B
PHP
21 lines
353 B
PHP
|
<?php
|
||
|
|
||
|
namespace Laravel\SerializableClosure\Contracts;
|
||
|
|
||
|
interface Serializable
|
||
|
{
|
||
|
/**
|
||
|
* Resolve the closure with the given arguments.
|
||
|
*
|
||
|
* @return mixed
|
||
|
*/
|
||
|
public function __invoke();
|
||
|
|
||
|
/**
|
||
|
* Gets the closure that got serialized/unserialized.
|
||
|
*
|
||
|
* @return \Closure
|
||
|
*/
|
||
|
public function getClosure();
|
||
|
}
|