src/Result/Graphql/ResultSetBuilder.php
public static function parsePrimaryData(\stdClass $class)
    {
        $members = get_object_vars($class);
        foreach ($members as $varName => $member) {
            if ($varName == AbstractOperation::GRAPHQL_DATA_KEY) {
                return $member;
            }
            if ($member instanceof \stdClass) {
                return self::parsePrimaryData($member);
            }
        }

        throw new NostoException(
            sprintf(
                'Could not find primary data field (%s) from response',
                AbstractOperation::GRAPHQL_DATA_KEY
            )
        );
    }
public static function parsePrimaryData(\stdClass $class)
    {
        $members = get_object_vars($class);
        foreach ($members as $varName => $member) {
            if ($varName == AbstractOperation::GRAPHQL_DATA_KEY) {
                return $member;
            }
            if ($member instanceof \stdClass) {
                return self::parsePrimaryData($member);
            }
        }

        throw new NostoException(
            sprintf(
                'Could not find primary data field (%s) from response',
                AbstractOperation::GRAPHQL_DATA_KEY
            )
        );
    }
public static function parsePrimaryData ( \ stdClass $ class ) { $ members = get_object_vars ( $ class ) ; foreach ( $ members as $ varName => $ member ) { if ( $ varName == AbstractOperation :: GRAPHQL_DATA_KEY ) { return $ member ; } if ( $ member instanceof \ stdClass ) { return self :: parsePrimaryData ( $ member ) ; } } throw new NostoException ( sprintf ( 'Could not find primary data field (%s) from response' , AbstractOperation :: GRAPHQL_DATA_KEY ) ) ; }
Finds the primary data field from stdClass

@param \stdClass $class
@return array
@throws NostoException
Finds the primary data field from stdClass