for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Improved\IteratorPipeline\PipelineBuilder;
class Stub
{
/**
* @var string
*/
protected $name;
* Class constructor.
*
* @param string $name
public function __construct(string $name)
$this->name = $name;
}
* Get the name of the stub.
* @return string
public function getName()
return $this->name;
* Invoke stub
* @param iterable $iterable
* @return iterable
public function __invoke(iterable $iterable)
return $iterable;