PHP Class Longman\TelegramBot\Commands\UserCommands\DateCommand

Inheritance: extends Longman\TelegramBot\Commands\UserCommand
Afficher le fichier Open project: akalongman/php-telegram-bot

Protected Properties

Свойство Type Description
$description string
$name string
$usage string
$version string

Méthodes publiques

Méthode Description
execute ( ) : mixed Command execute method

Private Methods

Méthode 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 méthode

Command execute method
public execute ( ) : mixed
Résultat mixed

Property Details

$description protected_oe property

protected string $description
Résultat string

$name protected_oe property

protected string $name
Résultat string

$usage protected_oe property

protected string $usage
Résultat string

$version protected_oe property

protected string $version
Résultat string