for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
declare(strict_types=1);
namespace Baethon\Phln\Monad;
final class Constant
{
/**
* @var mixed
*/
private $value;
* @param mixed $value
public function __construct($value)
$this->value = $value;
}
public function map(callable $fn): Constant
$fn
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return new static($this->value);
public static function of($value): Constant
return new static($value);
* @return mixed
public function extract()
return $this->value;
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.