- class
Invoker(php\lang\Invoker) - package
std - source
php/lang/Invoker.php
Description
Class for calling methods/functions/etc.
Invoker ::of()
->__construct()->callArray()- Call with array arguments->call()- Call the current callback->__invoke()- Alias of call() method->canAccess()- Check access to invoke the method at a moment->getDescription()- Returns description of the method - name + argument info->getArgumentCount()- Returns argument count of the method->isClosure()- Checks it is a closure->isNamedFunction()- Checks it is a named function->isStaticCall()- Checks it is a static call->isDynamicCall()- Checks it is a dynamic call
Invoker::of(mixed|callable $callback): Invoker|null__construct(callable $callback): voidcallArray(array $args): ArrayCall with array arguments
call(array $args): int|mixedCall the current callback
__invoke(): voidAlias of call() method
canAccess(): boolCheck access to invoke the method at a moment
getDescription(): stringReturns description of the method - name + argument info
getArgumentCount(): intReturns argument count of the method
isClosure(): boolChecks it is a closure
isNamedFunction(): boolChecks it is a named function
isStaticCall(): boolChecks it is a static call
isDynamicCall(): boolChecks it is a dynamic call