for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace As3\Bundle\PostProcessBundle\Task;
/**
* Task for running a callable property.
*
* @author Jacob Bare <[email protected]>
*/
class CallableTask implements TaskInterface
{
* @var callable
private $callable;
* @param callable $callable
public function __construct(callable $callable)
$this->callable = $callable;
}
* {@inheritdoc}
public function run()
$callable = $this->callable;
$callable();