private function createCommandDefinition($id, $connectionId, $class, $serverName, $command)
    {
        $commandDefinition = new DefinitionDecorator($id);
        $commandDefinition->setClass($class);
        $commandDefinition->setLazy(true);
        $commandDefinition->replaceArgument(0, new Reference($connectionId));
        $commandDefinition->addTag('nanbando.server_command', ['server' => $serverName, 'command' => $command]);

        return $commandDefinition;
    }
private function createCommandDefinition($id, $connectionId, $class, $serverName, $command)
    {
        $commandDefinition = new DefinitionDecorator($id);
        $commandDefinition->setClass($class);
        $commandDefinition->setLazy(true);
        $commandDefinition->replaceArgument(0, new Reference($connectionId));
        $commandDefinition->addTag('nanbando.server_command', ['server' => $serverName, 'command' => $command]);

        return $commandDefinition;
    }
private function createCommandDefinition ( $ id , $ connectionId , $ class , $ serverName , $ command ) { $ commandDefinition = new DefinitionDecorator ( $ id ) ; $ commandDefinition -> setClass ( $ class ) ; $ commandDefinition -> setLazy ( true ) ; $ commandDefinition -> replaceArgument ( 0 , new Reference ( $ connectionId ) ) ; $ commandDefinition -> addTag ( 'nanbando.server_command' , [ 'server' => $ serverName , 'command' => $ command ] ) ; return $ commandDefinition ; }
Create a new command definition.

@param string $id
@param string $connectionId
@param string $class
@param string $serverName
@param string $command

@return DefinitionDecorator
Create a new command definition .