PHP Class Longman\TelegramBot\Commands\UserCommands\WeatherCommand

Inheritance: extends Longman\TelegramBot\Commands\UserCommand
Datei anzeigen Open project: akalongman/php-telegram-bot

Protected Properties

Property Type Description
$description string
$name string
$usage string
$version string

Public Methods

Method Description
execute ( ) : mixed Command execute method

Private Methods

Method Description
getWeatherData ( string $location ) : string Get weather data using HTTP request
getWeatherString ( array $data ) : string Get weather string from weather data

Method Details

execute() public method

Command execute method
public execute ( ) : mixed
return mixed

Property Details

$description protected_oe property

protected string $description
return string

$name protected_oe property

protected string $name
return string

$usage protected_oe property

protected string $usage
return string

$version protected_oe property

protected string $version
return string