PhpBotFramework  2.0.2
A framework for Telegram Bots' APIs.
Public Member Functions | Public Attributes | List of all members
PhpBotFramework\Database\Getter Class Reference

Get PDO and redis object from bot, if any. More...

Inheritance diagram for PhpBotFramework\Database\Getter:
PhpBotFramework\Bot PhpBotFramework\Test\TestBot

Public Member Functions

PDO getPdo ()
 Get PDO object. More...
 
Redis getRedis ()
 Get Redis object. More...
 

Public Attributes

 $database
 
 $redis
 

Detailed Description

Get PDO and redis object from bot, if any.

Member Function Documentation

◆ getPdo()

PDO PhpBotFramework\Database\Getter::getPdo ( )

Get PDO object.

Returns
PDO Connection object.

◆ getRedis()

Redis PhpBotFramework\Database\Getter::getRedis ( )

Get Redis object.

Returns
Redis Conneciton object.

The documentation for this class was generated from the following file: