PHP Class PAGI\Client\Result\AmdResult

PHP Version 5
Author: Marcelo Gornstein ([email protected])
Inheritance: extends ExecResult
Afficher le fichier Open project: marcelog/pagi Class Usage Examples

Méthodes publiques

Méthode Description
__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

Private Methods

Méthode Description
isCause ( string $string ) : boolean True if the cause equals the given string
isStatus ( string $string ) : boolean True if the status equals the given string

Method Details

__construct() public méthode

Constructor.
public __construct ( PAGI\Client\Result\IResult $result ) : void
$result PAGI\Client\Result\IResult Result to decorate.
Résultat void

__toString() public méthode

(non-PHPdoc)
public __toString ( )

getCause() public méthode

Returns the cause string.
public getCause ( ) : string
Résultat string

getStatus() public méthode

Returns the status string.
public getStatus ( ) : string
Résultat string

isCauseGreeting() public méthode

True if AMD status is due to a long greeting detected.
public isCauseGreeting ( ) : boolean
Résultat boolean

isCauseHuman() public méthode

True if AMD status is due to a silence after a greeting.
public isCauseHuman ( ) : boolean
Résultat boolean

isCauseInitialSilence() public méthode

True if AMD status is due to a silence duration.
public isCauseInitialSilence ( ) : boolean
Résultat boolean

isCauseTooLong() public méthode

True if AMD status is due to a timeout when detecting.
public isCauseTooLong ( ) : boolean
Résultat boolean

isCauseWordLength() public méthode

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

isHangup() public méthode

True if AMD detected a hangup.
public isHangup ( ) : boolean
Résultat boolean

isHuman() public méthode

True if AMD detected a human.
public isHuman ( ) : boolean
Résultat boolean

isMachine() public méthode

True if AMD detected an answering machine.
public isMachine ( ) : boolean
Résultat boolean

isNotSure() public méthode

True if AMD failed detecting an answering machine or human.
public isNotSure ( ) : boolean
Résultat boolean

setCause() public méthode

Sets the cause string
public setCause ( string $cause ) : void
$cause string
Résultat void

setStatus() public méthode

Sets the cause string
public setStatus ( $status ) : void
Résultat void