Factory/ChannelFactory.php
public function createList(array $data, $channelList = false)
    {
        if (false === $channelList) {
            $channelList = ChannelList::create();
        }

        if (isset($data['channels'])) {
            $channelList = $channelList->setChannels($this->createChannels($data['channels']));
        }

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

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

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

        if (isset($data['channels'])) {
            $channelList = $channelList->setChannels($this->createChannels($data['channels']));
        }

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

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

        return $channelList;
    }
@param array             $data
@param false|ChannelList $channelList

@return ChannelList