for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace loophp\combinator\Combinator;
use loophp\combinator\Combinator;
/**
* Class I.
*
* @psalm-template XType
* @psalm-template ResultType
*/
final class I extends Combinator
{
* @var mixed
private $x;
* I constructor.
* @psalm-param XType $x
* @param mixed $x
public function __construct($x)
$this->x = $x;
}
* @psalm-return XType
public function __invoke()
return $this->x;