This is an error 404
There are `0` results
preferences:
175.85 ms | 1399 KiB | 7 Q<?php
class integer {
private $value;
public function __construct(int $value)
{
$this->value = $value;
}
public static function __invoke(int ...$value) : int
{
if (count($value) === 1)
$this->value = $value[0];
else
throw new Exception('Multiple values given.');
return $this->value;
}
}
$testi = new integer(1);
$testi(2);