PHP Class Longman\TelegramBot\Commands\UserCommands\DateCommand

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
getCoordinates ( string $location ) : array Get coordinates
getDate ( string $lat, string $lng ) : array Get date
getFormattedDate ( string $location ) : string Get formatted date at the passed location
validateResponseData ( string $data ) : array Evaluate the response data and see if the request was successful

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