Gajus\Bugger\Bugger::tick PHP Method

tick() public static method

Tracks the number of times tick function itself has been called and returns true when the desired number within the namespace is reached.
public static tick ( integer $true_after, string $namespace = 'default' ) : boolean
$true_after integer Number of the itteration after which response is true.
$namespace string Itteration namespace.
return boolean
    public static function tick($true_after = 0, $namespace = 'default')
    {
        if (!isset(static::$ticks[$namespace])) {
            static::$ticks[$namespace] = 0;
        }
        return ++static::$ticks[$namespace] >= $true_after;
    }