for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace __\Traits\Sequence;
trait Chain
{
/**
* Returns a wrapper instance, allows the value to be passed through multiple php-lodash functions
*
* @usage __::chain([0, 1, 2, 3, null])
* ->compact()
* ->prepend(4)
* ->value();
* >> [4, 1, 2, 3]
* @param mixed $initialValue
* @return mixed
*/
public static function chain($initialValue)
return new ChainWrapper($initialValue);
}