for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types = 1);
namespace Sergiors\Pipeline;
/**
* @author Sérgio Rafael Siqueira <[email protected]>
*/
final class Map
{
* @var callable
private $callable;
public function __construct(callable $callable)
$this->callable = $callable;
}
public function __invoke($payload)
return array_map($this->callable, $payload);