Factory/StreamFactory.php
public function createList(array $data, $streamList = false)
    {
        if (false === $streamList) {
            $streamList = StreamList::create();
        }

        if (isset($data['streams'])) {
            $streamList = $streamList->setStreams($this->createStreams($data['streams']));
        }

        if (isset($data['_links'])) {
            $streamList = $streamList->setLinks($data['_links']);
        }

        if (isset($data['_total'])) {
            $streamList = $streamList->setTotal($data['_total']);
        }

        return $streamList;
    }
public function createList(array $data, $streamList = false)
    {
        if (false === $streamList) {
            $streamList = StreamList::create();
        }

        if (isset($data['streams'])) {
            $streamList = $streamList->setStreams($this->createStreams($data['streams']));
        }

        if (isset($data['_links'])) {
            $streamList = $streamList->setLinks($data['_links']);
        }

        if (isset($data['_total'])) {
            $streamList = $streamList->setTotal($data['_total']);
        }

        return $streamList;
    }
@param array            $data
@param false|StreamList $streamList

@return StreamList