<commit_before><?php
/**
 * reamaze-sdk-api
 *
 * @author <NAME> <<EMAIL>>
 */

namespace mixisLv\Reamaze\Api;

use mixisLv\Reamaze\BaseApi;
use mixisLv\Reamaze\Params\Channels\RetrieveParams as ChannelRetrieveParams;

class Channels extends BaseApi
{
    public function retrieve(ChannelRetrieveParams $params)
    {
        $page = max(1, (int)$params->page);
        $channel  = $params->channel && in_array($params->channel, ChannelRetrieveParams::channelFilters()) ? $params->channel : '';
        $slug  = $params->slug;

        return $this->api->call('channels' . ($slug ? '/' . $slug : '') , 'GET', ['page' => $page, 'channel' => $channel ]);
    }
}<commit_msg>updated composer<commit_after><?php
/**
 * reamaze-sdk-api
 *
 * @author <NAME> <<EMAIL>>
 */

namespace mixisLv\Reamaze\Api;

use mixisLv\Reamaze\BaseApi;
use mixisLv\Reamaze\Params\Channels\RetrieveParams as ChannelRetrieveParams;

class Channels extends BaseApi
{
    /**
     * retrieve
     *
     * @param ChannelRetrieveParams $params
     *
     * @return \stdClass
     * @throws \mixisLv\Reamaze\Exceptions\ApiException
     * @see https://www.reamaze.com/api/get_channels
     */
    public function retrieve(ChannelRetrieveParams $params)
    {
        $channel  = $params->channel && in_array($params->channel, ChannelRetrieveParams::channelFilters()) ? $params->channel : '';
        $slug  = $params->slug;

        return $this->api->call('channels' . ($slug ? '/' . $slug : '') , 'GET', ['page' => $params->page, 'channel' => $channel ]);
    }
}
{'fraction_non_alphanumeric': 0.1719869706840391, 'fraction_numerical': 0.0006514657980456026, 'mean_word_length': 3.413793103448276, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 27, 'https://': 1, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2601450', 'n_tokens_mistral': 510, 'n_tokens_neox': 518, 'n_words': 88}