<commit_before><?php

/*
 * This file is part of the slack-cli package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CL\SlackCli\Command;

use CL\Slack\Payload\ImClosePayload;
use CL\Slack\Payload\ImClosePayloadResponse;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
class ImCloseCommand extends AbstractApiCommand
{
    /**
     * {@inheritDoc}
     */
    protected function configure()
    {
        parent::configure();

        $this->setName('im:close');
        $this->setDescription('Closes a given Slack IM channel');
        $this->addArgument('im-id', InputArgument::REQUIRED, 'The ID of an IM channel to close');
        $this->setHelp(<<<EOT
The <info>im:close</info> command let's you close a IM channel

For more information about the related API method, check out the official documentation:
<comment>https://api.slack.com/methods/im.close</comment>
EOT
        );
    }

    /**
     * @param InputInterface $input
     *
     * @return ImClosePayload
     */
    protected function createPayload()<commit_msg>fixed phpdoc<commit_after><?php

/*
 * This file is part of the slack-cli package.
 *
 * (c) <NAME> <<EMAIL>>
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace CL\SlackCli\Command;

use CL\Slack\Payload\ImClosePayload;
use CL\Slack\Payload\ImClosePayloadResponse;
use Symfony\Component\Console\Input\InputArgument;
use Symfony\Component\Console\Input\InputInterface;

/**
 * @author <NAME> <<EMAIL>>
 */
class ImCloseCommand extends AbstractApiCommand
{
    /**
     * {@inheritDoc}
     */
    protected function configure()
    {
        parent::configure();

        $this->setName('im:close');
        $this->setDescription('Closes a given Slack IM channel');
        $this->addArgument('im-id', InputArgument::REQUIRED, 'The ID of an IM channel to close');
        $this->setHelp(<<<EOT
The <info>im:close</info> command let's you close a IM channel

For more information about the related API method, check out the official documentation:
<comment>https://api.slack.com/methods/im.close</comment>
EOT
        );
    }

    /**
     * @return ImClosePayload
     */
    protected function createPayload()
{'fraction_non_alphanumeric': 0.12561174551386622, 'fraction_numerical': 0.0, 'mean_word_length': 3.41981981981982, 'pattern_counts': {'":': 0, '<': 31, '<?xml version=': 0, '>': 31, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, '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': '1777385', 'n_tokens_mistral': 718, 'n_tokens_neox': 710, 'n_words': 203}