Helper class to wrap an object with a modified interface created by a partial application of its existing methods.

package Library
subpackage Twilio\Api\Action\AvailablePhoneNumber
author Aleksey Korzun

 Methods

Magic call wrapper that checks against internal callback storage for requested methods

__call(string $method, array $arguments) : mixed

Parameters

$method

string

method that user is attempting to call

$arguments

string[]

optional additional arguments

Exceptions

\Exception

Returns

mixed

Set-up a new call back method for internal storage

set(string $method, string $callback, array $arguments) : bool

Parameters

$method

string

name of internal method

$callback

string

function that we should associate with internal call back

$arguments

string[]

additional arguments

Returns

bool

 Properties

 

$callbacks : string[]