WebDriver/WebDriver/Exception/Protocol.php
public static function getCommandDescription(WebDriver_Command $command)
    {
        $commandDescriptionList = [
            "Command: {$command->getCommandName()}",
            "Method: {$command->getMethod()}",
            "URL: {$command->getUrl()}"
        ];
        $paramList = $command->getParameters();
        if (!empty($paramList)) {
            $commandDescriptionList = array_merge(
                $commandDescriptionList,
                ["Parameters:", var_export($paramList, true)]
            );
        }
        return implode("\n", $commandDescriptionList);
    }
public static function getCommandDescription(WebDriver_Command $command)
    {
        $commandDescriptionList = [
            "Command: {$command->getCommandName()}",
            "Method: {$command->getMethod()}",
            "URL: {$command->getUrl()}"
        ];
        $paramList = $command->getParameters();
        if (!empty($paramList)) {
            $commandDescriptionList = array_merge(
                $commandDescriptionList,
                ["Parameters:", var_export($paramList, true)]
            );
        }
        return implode("\n", $commandDescriptionList);
    }
public static function getCommandDescription ( WebDriver_Command $ command ) { $ commandDescriptionList = [ "Command: {$command->getCommandName()}" , "Method: {$command->getMethod()}" , "URL: {$command->getUrl()}" ] ; $ paramList = $ command -> getParameters ( ) ; if ( ! empty ( $ paramList ) ) { $ commandDescriptionList = array_merge ( $ commandDescriptionList , [ "Parameters:" , var_export ( $ paramList , true ) ] ) ; } return implode ( "\n" , $ commandDescriptionList ) ; }
Returns webdriver command description.

@param WebDriver_Command $command
@return string
Returns webdriver command description .