PHP 클래스 PAGI\Client\Result\AmdResult

PHP Version 5
저자: Marcelo Gornstein ([email protected])
상속: extends ExecResult
파일 보기 프로젝트 열기: marcelog/pagi 1 사용 예제들

공개 메소드들

메소드 설명
__construct ( PAGI\Client\Result\IResult $result ) : void Constructor.
__toString ( ) (non-PHPdoc)
getCause ( ) : string Returns the cause string.
getStatus ( ) : string Returns the status string.
isCauseGreeting ( ) : boolean True if AMD status is due to a long greeting detected.
isCauseHuman ( ) : boolean True if AMD status is due to a silence after a greeting.
isCauseInitialSilence ( ) : boolean True if AMD status is due to a silence duration.
isCauseTooLong ( ) : boolean True if AMD status is due to a timeout when detecting.
isCauseWordLength ( ) : boolean True if AMD status is due to a maximum number of words reached.
isHangup ( ) : boolean True if AMD detected a hangup.
isHuman ( ) : boolean True if AMD detected a human.
isMachine ( ) : boolean True if AMD detected an answering machine.
isNotSure ( ) : boolean True if AMD failed detecting an answering machine or human.
setCause ( string $cause ) : void Sets the cause string
setStatus ( $status ) : void Sets the cause string

비공개 메소드들

메소드 설명
isCause ( string $string ) : boolean True if the cause equals the given string
isStatus ( string $string ) : boolean True if the status equals the given string

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( PAGI\Client\Result\IResult $result ) : void
$result PAGI\Client\Result\IResult Result to decorate.
리턴 void

__toString() 공개 메소드

(non-PHPdoc)
public __toString ( )

getCause() 공개 메소드

Returns the cause string.
public getCause ( ) : string
리턴 string

getStatus() 공개 메소드

Returns the status string.
public getStatus ( ) : string
리턴 string

isCauseGreeting() 공개 메소드

True if AMD status is due to a long greeting detected.
public isCauseGreeting ( ) : boolean
리턴 boolean

isCauseHuman() 공개 메소드

True if AMD status is due to a silence after a greeting.
public isCauseHuman ( ) : boolean
리턴 boolean

isCauseInitialSilence() 공개 메소드

True if AMD status is due to a silence duration.
public isCauseInitialSilence ( ) : boolean
리턴 boolean

isCauseTooLong() 공개 메소드

True if AMD status is due to a timeout when detecting.
public isCauseTooLong ( ) : boolean
리턴 boolean

isCauseWordLength() 공개 메소드

True if AMD status is due to a maximum number of words reached.
public isCauseWordLength ( ) : boolean
리턴 boolean

isHangup() 공개 메소드

True if AMD detected a hangup.
public isHangup ( ) : boolean
리턴 boolean

isHuman() 공개 메소드

True if AMD detected a human.
public isHuman ( ) : boolean
리턴 boolean

isMachine() 공개 메소드

True if AMD detected an answering machine.
public isMachine ( ) : boolean
리턴 boolean

isNotSure() 공개 메소드

True if AMD failed detecting an answering machine or human.
public isNotSure ( ) : boolean
리턴 boolean

setCause() 공개 메소드

Sets the cause string
public setCause ( string $cause ) : void
$cause string
리턴 void

setStatus() 공개 메소드

Sets the cause string
public setStatus ( $status ) : void
리턴 void