phpDocumentor

FilterFactory implements FilterFactory

Class FilterFactory

Interfaces, Classes and Traits

FilterFactory
Interface FilterFactory

Table of Contents

$debug  : bool
$filters  : array<string|int, FilterInterface>
addFilter()  : void
Adds a new filter to the factory.
create()  : FilterInterface
Creates a new filter.
debug()  : void
Enables debugging mode.
failFallback()  : FilterInterface
Fallback if no filter was found.
tryGetFilter()  : FilterInterface
Checks if a filter with $filterName is available.

Properties

Methods

addFilter()

Adds a new filter to the factory.

public addFilter(string $filterName, FilterInterface $filter) : void
Parameters
$filterName : string
$filter : FilterInterface
Tags
inheritDoc
Return values
void

debug()

Enables debugging mode.

public debug() : void
Return values
void

failFallback()

Fallback if no filter was found.

private failFallback() : FilterInterface

This function returns a anonymous class that implements the FilterInterface and return true when using the ::check() method.

Return values
FilterInterface

Search results