for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace PhpJsonRpc\Server\Service\Method\Callables;
class CallableClosure
{
/**
* @var callable
*/
protected $closure;
* @param callable $closure
public function __construct(callable $closure)
$this->closure = $closure;
}
* @return callable
public function assemble()
return $this->closure();
public function closure()
return $this->closure;