for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* File was created 29.05.2015 21:26
*
* @author Karsten J. Gerber <[email protected]>
*/
namespace PeekAndPoke\Component\Psi\Functions;
use PeekAndPoke\Component\Psi\UnaryFunction;
use PeekAndPoke\Types\ValueHolder;
class ParameterizedUnaryFunction implements UnaryFunction
{
/** @var mixed|ValueHolder */
private $val;
private $val2;
* @param mixed|ValueHolder $val
* @param mixed|ValueHolder $val2
public function __construct($val, $val2 = null)
$this->val = $val;
$this->val2 = $val2;
}
* @return mixed
public function getValue()
return $this->val instanceof ValueHolder
? $this->val->getValue()
: $this->val;
public function getValue2()
return $this->val2 instanceof ValueHolder
? $this->val2->getValue()
: $this->val2;
* @param mixed $input
* @return null
public function __invoke($input)
return null;