protected function pickMetadata($data)
    {
        $metadata = [];
        if (ArrayUtils::has($data, 'rows')) {
            $metadata = ArrayUtils::omit($data, 'rows');
        } else if (ArrayUtils::has($data, 'meta')) {
            $metadata = ArrayUtils::get($data, 'meta');
        }

        return new Entry($metadata);
    }
protected function pickMetadata($data)
    {
        $metadata = [];
        if (ArrayUtils::has($data, 'rows')) {
            $metadata = ArrayUtils::omit($data, 'rows');
        } else if (ArrayUtils::has($data, 'meta')) {
            $metadata = ArrayUtils::get($data, 'meta');
        }

        return new Entry($metadata);
    }
protected function pickMetadata ( $ data ) { $ metadata = [ ] ; if ( ArrayUtils :: has ( $ data , 'rows' ) ) { $ metadata = ArrayUtils :: omit ( $ data , 'rows' ) ; } else if ( ArrayUtils :: has ( $ data , 'meta' ) ) { $ metadata = ArrayUtils :: get ( $ data , 'meta' ) ; } return new Entry ( $ metadata ) ; }
Pick the metadata out of the raw data

@param $data

@return Entry
Pick the metadata out of the raw data