public function getValues($type = null)
    {
        if ($type == null) {
            return $this->values;
        }

        $converter  = $this->converterFactory->getConverter($type);
        $resultList = [];

        foreach ($this->values as $riakObject) {
            $reference = new RiakObjectReference($riakObject, $this->location, $type);
            $converted = $converter->toDomain($reference);

            $resultList[] = $converted;
        }

        return new DomainObjectList($resultList);
    }
public function getValues($type = null)
    {
        if ($type == null) {
            return $this->values;
        }

        $converter  = $this->converterFactory->getConverter($type);
        $resultList = [];

        foreach ($this->values as $riakObject) {
            $reference = new RiakObjectReference($riakObject, $this->location, $type);
            $converted = $converter->toDomain($reference);

            $resultList[] = $converted;
        }

        return new DomainObjectList($resultList);
    }
public function getValues ( $ type = null ) { if ( $ type == null ) { return $ this -> values ; } $ converter = $ this -> converterFactory -> getConverter ( $ type ) ; $ resultList = [ ] ; foreach ( $ this -> values as $ riakObject ) { $ reference = new RiakObjectReference ( $ riakObject , $ this -> location , $ type ) ; $ converted = $ converter -> toDomain ( $ reference ) ; $ resultList [ ] = $ converted ; } return new DomainObjectList ( $ resultList ) ; }
Get all the objects returned in this response.
If a type is provided will be converted to the supplied class using the convert api.

@param string $type

@return \Riak\Client\Core\Query\RiakList
Get all the objects returned in this response . If a type is provided will be converted to the supplied class using the convert api .