class Ussd (View source)

Traits

Properties

protected $xpath
protected $sessionId
protected $store
protected $newSession

Methods

__get(string $key)

No description

__set(string $key, $value)

No description

fileToXpath(string $menuFile)

No description

bool
sessionExists(string $sessionId)

No description

string
clean(string $code = '')

No description

string|null
getAnswer(string|null $userInput)

No description

string
resolveTagName(DOMNode $node)

No description

string
resolveTagClass(string $tagName)

No description

instantiateTag(string $tagName, array $args = [])

No description

__construct(DOMXPath|string $menu, string $sessionId)

No description

entry(string $expression)

No description

save(array $options)

No description

string
handle(string|null $userInput = '')

No description

string|null
doParse(string|null $answer = '')

No description

void
doProcess(string|null $answer)

No description

void
doBreak()

No description

string|null
doRender()

No description

Details

__get(string $key)

No description

Parameters

string $key

__set(string $key, $value)

No description

Parameters

string $key
$value

protected DOMXPath fileToXpath(string $menuFile)

No description

Parameters

string $menuFile

Return Value

DOMXPath

protected bool sessionExists(string $sessionId)

No description

Parameters

string $sessionId

Return Value

bool

protected string clean(string $code = '')

No description

Parameters

string $code

Return Value

string

protected string|null getAnswer(string|null $userInput)

No description

Parameters

string|null $userInput

Return Value

string|null

protected string resolveTagName(DOMNode $node)

No description

Parameters

DOMNode $node

Return Value

string

protected string resolveTagClass(string $tagName)

No description

Parameters

string $tagName

Return Value

string

protected RenderableTag instantiateTag(string $tagName, array $args = [])

No description

Parameters

string $tagName
array $args

Return Value

RenderableTag

__construct(DOMXPath|string $menu, string $sessionId)

No description

Parameters

DOMXPath|string $menu
string $sessionId

Ussd entry(string $expression)

No description

Parameters

string $expression

Return Value

Ussd

Ussd save(array $options)

No description

Parameters

array $options

Return Value

Ussd

string handle(string|null $userInput = '')

No description

Parameters

string|null $userInput

Return Value

string

protected string|null doParse(string|null $answer = '')

No description

Parameters

string|null $answer

Return Value

string|null

protected void doProcess(string|null $answer)

No description

Parameters

string|null $answer

Return Value

void

protected void doBreak()

No description

Return Value

void

protected string|null doRender()

No description

Return Value

string|null