Basho\Riak\Command\Object::getDecodedData PHP Méthode

getDecodedData() public méthode

public getDecodedData ( $data, $contentType )
    public function getDecodedData($data, $contentType)
    {
        return static::decodeData($data, $contentType, $this->decodeAsAssociative);
    }

Usage Example

 public function parseObject($response, $headers = [])
 {
     $contentType = !empty($headers[Http::CONTENT_TYPE_KEY]) ? $headers[Http::CONTENT_TYPE_KEY] : '';
     $data = $this->command->getDecodedData($response, $contentType);
     return (new RObject($data, $headers))->setRawData($response);
 }