Skip to content

Latest commit

 

History

History
151 lines (106 loc) · 2.53 KB

Invoker.md

File metadata and controls

151 lines (106 loc) · 2.53 KB

Invoker

  • class Invoker (php\lang\Invoker)
  • package std
  • source php/lang/Invoker.php

Description

Class for calling methods/functions/etc.


Static Methods


Methods


Static Methods

of()

Invoker::of(mixed|callable $callback): Invoker|null

Methods

__construct()

__construct(callable $callback): void

callArray()

callArray(array $args): Array

Call with array arguments


call()

call(array $args): int|mixed

Call the current callback


__invoke()

__invoke(): void

Alias of call() method


canAccess()

canAccess(): bool

Check access to invoke the method at a moment


getDescription()

getDescription(): string

Returns description of the method - name + argument info


getArgumentCount()

getArgumentCount(): int

Returns argument count of the method


isClosure()

isClosure(): bool

Checks it is a closure


isNamedFunction()

isNamedFunction(): bool

Checks it is a named function


isStaticCall()

isStaticCall(): bool

Checks it is a static call


isDynamicCall()

isDynamicCall(): bool

Checks it is a dynamic call