Kraken\_Unit\Console\Server\_T\TCommand::createChannel PHP Метод

createChannel() публичный Метод

public createChannel ( string[] | null $methods = [] ) : Kraken\Channel\ChannelInterface | PHPUnit_Framework_MockObject_MockObject
$methods string[] | null
Результат Kraken\Channel\ChannelInterface | PHPUnit_Framework_MockObject_MockObject
    public function createChannel($methods = [])
    {
        $channel = $this->getMock(Channel::class, $methods, [], '', false);
        if ($this->cmd !== null && $this->existsProtectedProperty($this->cmd, 'channel')) {
            $this->setProtectedProperty($this->cmd, 'channel', $channel);
        }
        return $channel;
    }