PAGI\Client\Result\ExecResult

This decorated result adds the functionality to check for an exec result.

PHP Version 5

Properties

$result

private \PAGI\Client\Result\IResult $result

Our decorated result.

  • Visibility: private

Methods

__construct

void PAGI\Client\Result\ResultDecorator::__construct(\PAGI\Client\Result\IResult $result)

Constructor.

Arguments

getOriginalLine

string PAGI\Client\Result\IResult::getOriginalLine()

Returns original line.

getCode

integer PAGI\Client\Result\IResult::getCode()

Returns the integer value of the code returned by agi.

getResult

integer PAGI\Client\Result\IResult::getResult()

Returns result (result=xxx) from the result.

isResult

boolean PAGI\Client\Result\IResult::isResult(string $value)

Compares result to a given value.

Arguments

  • $value string - <p>Value to match against.</p>

hasData

boolean PAGI\Client\Result\IResult::hasData()

Returns true if this command returned any data.

getData

string PAGI\Client\Result\IResult::getData()

Returns data, if any. False if none.

__toString

string PAGI\Client\Result\ResultDecorator::__toString()

Standard procedure.