- 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): void
callArray(array $args): Array
Call with array arguments
call(array $args): int|mixed
Call the current callback
__invoke(): void
Alias of call() method
canAccess(): bool
Check access to invoke the method at a moment
getDescription(): string
Returns description of the method - name + argument info
getArgumentCount(): int
Returns argument count of the method
isClosure(): bool
Checks it is a closure
isNamedFunction(): bool
Checks it is a named function
isStaticCall(): bool
Checks it is a static call
isDynamicCall(): bool
Checks it is a dynamic call