Erebot
latest
A modular IRC bot for PHP 7.0+
|
A filter that negates the result of a sub-filter. More...
Public Member Functions | |
__construct (\Erebot\Interfaces\Event\Match $filter) | |
getFilter () | |
match (\Erebot\Interfaces\Event\Base\Generic $event) | |
setFilter (\Erebot\Interfaces\Event\Match $filter) | |
Protected Attributes | |
$filter | |
Subfilter to negate. | |
A filter that negates the result of a sub-filter.
This filter uses a sub-filter. It does not match whenever the sub-filter matches and vice versa. If can be used as a logical-NOT to express more complex filters.
Erebot\Event\Match\Not::__construct | ( | \Erebot\Interfaces\Event\Match | $filter | ) |
Creates a new instance of this filter.
Erebot::Interfaces::Event::Match | $filter | Subfilter to negate. |
Definition at line 42 of file Not.php.
References Erebot\Event\Match\Not\setFilter().
Erebot\Event\Match\Not::getFilter | ( | ) |
Returns the negated subfilter.
Erebot::Interfaces::Event::Match | Negated subfilter. |
Definition at line 53 of file Not.php.
References Erebot\Event\Match\Not\$filter.
Erebot\Event\Match\Not::setFilter | ( | \Erebot\Interfaces\Event\Match | $filter | ) |
Sets the negated subfilter for this filter.
Erebot::Interfaces::Event::Match | $filter | Subfilter to negate. |
Definition at line 64 of file Not.php.
References Erebot\Event\Match\Not\$filter.
Referenced by Erebot\Event\Match\Not\__construct().