public static function getOrCreateResultAt($index = 0)
    {
        $results = static::getResultAt($index);

        if (is_null($results)) {
            $results = static::makeResult()->attachAtIndex($index);
        }

        return $results;
    }
public static function getOrCreateResultAt($index = 0)
    {
        $results = static::getResultAt($index);

        if (is_null($results)) {
            $results = static::makeResult()->attachAtIndex($index);
        }

        return $results;
    }
public static function getOrCreateResultAt ( $ index = 0 ) { $ results = static :: getResultAt ( $ index ) ; if ( is_null ( $ results ) ) { $ results = static :: makeResult ( ) -> attachAtIndex ( $ index ) ; } return $ results ; }
Retrieve a result at a specific index. If no result is found, a new,
blank result will be generated, stored at the index, and returned.

@param  integer $index
@return Result
Retrieve a result at a specific index . If no result is found a new blank result will be generated stored at the index and returned .