for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Incoming
*
* @author Trevor Suarez (Rican7)
* @copyright (c) Trevor Suarez
* @link https://github.com/Rican7/incoming
* @license MIT
*/
declare(strict_types=1);
namespace Incoming\Transformer;
* A transformer that simply returns the input data as is.
* Great for use as part of the "Null Object" pattern as its basically a no-op.
class PassthruTransformer implements Transformer
{
* {@inheritdoc}
* @param mixed $input The data to transform.
* @return mixed The original input data, without transformation.
public function transform($input)
return $input;
}