for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File was created 06.05.2015 21:00
*
* @author Karsten J. Gerber <[email protected]>
*/
namespace PeekAndPoke\Component\Psi\Operation\Intermediate\Functional;
use PeekAndPoke\Component\Psi\IntermediateOperation;
use PeekAndPoke\Component\Psi\Operation\AbstractBinaryFunctionOperation;
use PeekAndPoke\Component\Psi\Solver\IntermediateContext;
class MapOperation extends AbstractBinaryFunctionOperation implements IntermediateOperation
{
* {@inheritdoc}
public function apply($input, $index, IntermediateContext $context)
$context->outUseItem = true;
$context->outCanContinue = true;
$func = $this->function;
return $func($input, $index);
}