src/Cronner/Cronner.php
public function setMaxExecutionTime(int $maxExecutionTime = NULL) : self
	{
		if ($maxExecutionTime !== NULL && $maxExecutionTime <= 0) {
			throw new InvalidArgumentException("Max execution time must be NULL or non negative number.");
		}
		$this->maxExecutionTime = $maxExecutionTime;

		return $this;
	}
public function setMaxExecutionTime(int $maxExecutionTime = NULL) : self
	{
		if ($maxExecutionTime !== NULL && $maxExecutionTime <= 0) {
			throw new InvalidArgumentException("Max execution time must be NULL or non negative number.");
		}
		$this->maxExecutionTime = $maxExecutionTime;

		return $this;
	}
public function setMaxExecutionTime ( int $ maxExecutionTime = NULL ) : self { if ( $ maxExecutionTime !== NULL && $ maxExecutionTime <= 0 ) { throw new InvalidArgumentException ( "Max execution time must be NULL or non negative number." ) ; } $ this -> maxExecutionTime = $ maxExecutionTime ; return $ this ; }
Sets max execution time for Cronner. It is used only when Cronner runs.

@param int|null $maxExecutionTime
@return Cronner
@throws InvalidArgumentException
Sets max execution time for Cronner . It is used only when Cronner runs .