Erebot  latest
A modular IRC bot for PHP 5.3+
Erebot\CallableInterface Interface Reference

Interface for something that can be called. More...

+ Inheritance diagram for Erebot\CallableInterface:

Public Member Functions

 __invoke ()
 

Detailed Description

Interface for something that can be called.

This interface provides a generic way to define something that can be invoked to execute some code, like a function, a method (with the usual array representation used by PHP), a closure, etc.

Definition at line 31 of file CallableInterface.php.

Member Function Documentation

Erebot\CallableInterface::__invoke ( )

Implementation of the __invoke() magic method so that the wrapped code can be called using the usual syntax.


The documentation for this interface was generated from the following file: