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 K.
*/
final class K extends Combinator
{
* @var mixed
private $x;
private $y;
* K constructor.
*
* @param mixed $x
* @param mixed $y
public function __construct($x, $y)
$this->x = $x;
$this->y = $y;
}
* @return mixed
public function __invoke()
return $this->x;
* @return callable
public static function closure(): callable
return static function ($x, $y) {
return (new self($x, $y))();
};