Documentation

Filter
in package

Filter used to manipulate a descriptor after being build.

This class is used during the building of descriptors. It passes the descriptor to each individual sub-filter, which may change data in the descriptor or even remove it from the building process by returning null.

Table of Contents

$pipeline  : Pipeline
__construct()  : mixed
Constructs the filter pipeline.
filter()  : TDescriptor|null
Filters the given Descriptor and returns the altered object.

Properties

Methods

__construct()

Constructs the filter pipeline.

public __construct(iteratable<int, FilterInterface$filters) : mixed

Filters are allowed to return null when a elements needs to be removed. Therefor a default InterruptibleProcessor processor is applied which prevents the errors in these situations.

Parameters
$filters : iteratable<int, FilterInterface>
Return values
mixed

filter()

Filters the given Descriptor and returns the altered object.

public filter(TDescriptor $descriptor, ApiSpecification $apiSpecification) : TDescriptor|null
Parameters
$descriptor : TDescriptor
$apiSpecification : ApiSpecification
Tags
template

TDescriptor as Filterable

Return values
TDescriptor|null

Search results