src/main/php/CallMap.php
public function hasResultFor(string $method, int $invocationCount): bool
    {
        if (!array_key_exists($method, $this->callMap)) {
            return false;
        }

        if ($this->callMap[$method] instanceof InvocationResults) {
            return $this->callMap[$method]->hasResultForInvocation($invocationCount - 1);
        }

        return true;
    }
public function hasResultFor(string $method, int $invocationCount): bool
    {
        if (!array_key_exists($method, $this->callMap)) {
            return false;
        }

        if ($this->callMap[$method] instanceof InvocationResults) {
            return $this->callMap[$method]->hasResultForInvocation($invocationCount - 1);
        }

        return true;
    }
public function hasResultFor ( string $ method , int $ invocationCount ) : bool { if ( ! array_key_exists ( $ method , $ this -> callMap ) ) { return false ; } if ( $ this -> callMap [ $ method ] instanceof InvocationResults ) { return $ this -> callMap [ $ method ] -> hasResultForInvocation ( $ invocationCount - 1 ) ; } return true ; }
checks whether callmap has a result for the invocation of method

@param   string  $method           name of invoked method
@param   int     $invocationCount  denotes which nth invocation of the method this is
@return  bool
checks whether callmap has a result for the invocation of method