src/Executor.php
public function setInterval(int $seconds, ?int $microseconds = null): void
    {
        if (func_num_args() === 1) {
            $microseconds = $seconds;
            $seconds      = 0;
        }

        Assert::notNull($microseconds, 'Cannot set $microseconds to null. Set to 0 for no microseconds.');
        parent::setInterval($seconds, $microseconds);

        $this->seconds      = $seconds;
        $this->microseconds = $microseconds;
    }
public function setInterval(int $seconds, ?int $microseconds = null): void
    {
        if (func_num_args() === 1) {
            $microseconds = $seconds;
            $seconds      = 0;
        }

        Assert::notNull($microseconds, 'Cannot set $microseconds to null. Set to 0 for no microseconds.');
        parent::setInterval($seconds, $microseconds);

        $this->seconds      = $seconds;
        $this->microseconds = $microseconds;
    }
public function setInterval ( int $ seconds , ? int $ microseconds = null ) : void { if ( func_num_args ( ) === 1 ) { $ microseconds = $ seconds ; $ seconds = 0 ; } Assert :: notNull ( $ microseconds , 'Cannot set $microseconds to null. Set to 0 for no microseconds.' ) ; parent :: setInterval ( $ seconds , $ microseconds ) ; $ this -> seconds = $ seconds ; $ this -> microseconds = $ microseconds ; }
Just like \UI\Executor, if you only give 1 param, it will be treated as microseconds.
Just like \ UI \ Executor if you only give 1 param it will be treated as microseconds .