PHP 클래스 Longman\TelegramBot\Entities\ServerResponse

상속: extends Entity
파일 보기 프로젝트 열기: akalongman/php-telegram-bot 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( array $data, string $bot_name ) ServerResponse constructor.
isOk ( ) : boolean If response is ok
printError ( ) : string Print error

보호된 메소드들

메소드 설명
isAssoc ( array $array ) : boolean Check if array is associative

비공개 메소드들

메소드 설명
createResultObject ( array $result, string $bot_name ) : Chat | ChatMember | Longman\TelegramBot\Entities\File | Message | Longman\TelegramBot\Entities\User | UserProfilePhotos | Longman\TelegramBot\Entities\WebhookInfo Create and return the object of the received result
createResultObjects ( array $result, string $bot_name ) : null | ChatMember[] | Update[] Create and return the objects array of the received result

메소드 상세

__construct() 공개 메소드

ServerResponse constructor.
public __construct ( array $data, string $bot_name )
$data array
$bot_name string

isAssoc() 보호된 메소드

Check if array is associative
protected isAssoc ( array $array ) : boolean
$array array
리턴 boolean

isOk() 공개 메소드

If response is ok
public isOk ( ) : boolean
리턴 boolean

printError() 공개 메소드

Print error
public printError ( ) : string
리턴 string