|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
Interface for numeric message handlers. More...
Inheritance diagram for Erebot\Interfaces\NumericHandler:Public Member Functions | |
| getCallback () | |
| getNumeric () | |
| handleNumeric (\Erebot\Interfaces\Event\Numeric $numeric) | |
| setCallback (\Erebot\CallableInterface $callback) | |
| setNumeric ($numeric) | |
Interface for numeric message handlers.
This interface provides the necessary methods to handle a numeric message from an IRC server.
Definition at line 30 of file NumericHandler.php.
| Erebot\Interfaces\NumericHandler::getCallback | ( | ) |
Returns the callback function/method associated with this handler.
| callback | The callback for this handler. |
Implemented in Erebot\NumericHandler.
| Erebot\Interfaces\NumericHandler::getNumeric | ( | ) |
Returns the numeric code associated with this handler.
| int|Erebot::NumericReference | The numeric code for this handler, or a reference to it. |
Implemented in Erebot\NumericHandler.
| Erebot\Interfaces\NumericHandler::handleNumeric | ( | \Erebot\Interfaces\Event\Numeric | $numeric | ) |
Given a numeric message, this methods tries to handle it.
| Erebot::Interfaces::Event::Numeric | $numeric | The numeric message to try to handle. |
Implemented in Erebot\NumericHandler.
| Erebot\Interfaces\NumericHandler::setCallback | ( | \Erebot\CallableInterface | $callback | ) |
Sets the callback function/method associated with this handler.
| Erebot::CallableInterface | $callback | New callable associated with this handler. |
Implemented in Erebot\NumericHandler.
| Erebot\Interfaces\NumericHandler::setNumeric | ( | $numeric | ) |
Sets the numeric code associated with this handler.
| int | Erebot::NumericReference | $numeric | New numeric code to assign to this handler, or a reference to it. |
Implemented in Erebot\NumericHandler.