for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File was created 06.05.2015 22:18
*
* @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 EachOperation extends AbstractBinaryFunctionOperation implements IntermediateOperation
{
* {@inheritdoc}
public function apply($input, $index, IntermediateContext $context)
$context->outUseItem = true;
$context->outCanContinue = true;
$func = $this->function;
$func($input, $index);
// return the input unmodified
return $input;
}