Plop
A simple logging library for PHP
Plop\Filter\Not Class Reference

A filter that inverts the result of another filter. More...

+ Inheritance diagram for Plop\Filter\Not:

Public Member Functions

 __construct (\Plop\FilterInterface $filter)
 
 filter (\Plop\RecordInterface $record)
 

Protected Attributes

 $subfilter
 Subfilter to negate.
 

Detailed Description

A filter that inverts the result of another filter.

Definition at line 27 of file Not.php.

Constructor & Destructor Documentation

Plop\Filter\Not::__construct ( \Plop\FilterInterface  $filter)

Construct a new instance of this filter.

Parameters
Plop::FilterInterface$filterSubfilter whose filtering effect will be inverted by this filter instance.

Definition at line 39 of file Not.php.

Member Function Documentation

Plop\Filter\Not::filter ( \Plop\RecordInterface  $record)

Return whether the given record should be handled or filtered out.

Parameters
Plop::RecordInterface$recordThe record to filter.
Return values
boolWhether the given record should be handled normalled (true) or filtered out (false).

Implements Plop\FilterInterface.

Definition at line 45 of file Not.php.


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