src/Riak/Command/Builder/MapReduce/FetchObjects.php
protected function assemblePhaseData($bucket = '', $key = '', $source = '', $language = '', $tag = '')
    {
        $data = [];

        if ($language) {
            $data['language'] = $language;
        }

        if ($bucket) {
            $data['bucket'] = $bucket;
        }

        if ($key) {
            $data['key'] = $key;
        }

        if ($source) {
            $data['source'] = $source;
        }

        if ($tag) {
            $data['tag'] = $tag;
        }

        return $data;
    }
protected function assemblePhaseData($bucket = '', $key = '', $source = '', $language = '', $tag = '')
    {
        $data = [];

        if ($language) {
            $data['language'] = $language;
        }

        if ($bucket) {
            $data['bucket'] = $bucket;
        }

        if ($key) {
            $data['key'] = $key;
        }

        if ($source) {
            $data['source'] = $source;
        }

        if ($tag) {
            $data['tag'] = $tag;
        }

        return $data;
    }
assemblePhaseData

Assembles the parameters into a data structure to define a Query Phase

@param string $bucket
@param string $key
@param string $source
@param string $language
@param string $tag

@return array