PHP Interface Kraken\Util\Invoker\InvokerInterface

ファイルを表示 Open project: kraken-php/framework Interface Usage Examples

Public Methods

Method Description
call ( string $func, mixed[] $args = [] ) : mixed Call function $func with given arguments $args.
existsProxy ( string $func ) : boolean Check if proxy for function $func exists.
getProxy ( string $func ) : mixed Get proxy for function $func.
removeProxy ( string $func ) Remove proxy for function $func.
setProxy ( string $func, callable $callable ) Set proxy for function $func.

Method Details

call() public method

Call function $func with given arguments $args.
public call ( string $func, mixed[] $args = [] ) : mixed
$func string
$args mixed[]
return mixed

existsProxy() public method

Check if proxy for function $func exists.
public existsProxy ( string $func ) : boolean
$func string
return boolean

getProxy() public method

Get proxy for function $func.
public getProxy ( string $func ) : mixed
$func string
return mixed

removeProxy() public method

Remove proxy for function $func.
public removeProxy ( string $func )
$func string

setProxy() public method

Set proxy for function $func.
public setProxy ( string $func, callable $callable )
$func string
$callable callable