ChainedMapper

Extends \ContainerMapper

A <code>ContainerMapper</code> that chains the results of the first nested <code>FileNameMapper</code>s into sourcefiles for the second, the second to the third, and so on, returning the resulting mapped filenames from the last nested <code>FileNameMapper</code>.

package

phing

Methods

Add a <code>FileNameMapper</code>.

add(\FileNameMapper $fileNameMapper) 
inherited
Throws
\BadMethodCallException

if attempting to add this ContainerMapper to itself, or if the specified FileNameMapper is itself a ContainerMapper that contains this ContainerMapper.

Arguments

$fileNameMapper

\FileNameMapper

a FileNameMapper.

An add configured version of the add method.

addConfigured(\FileNameMapper $fileNameMapper) 
inherited

This class used to contain an add method and an addConfiguredMapper method. Dur to ordering, the add method was always called first. This addConfigured method has been added to allow chaining to work correctly.

Arguments

$fileNameMapper

\FileNameMapper

a FileNameMapper.

Add a <code>Mapper</code>.

addMapper(\Mapper $mapper) 
inherited

Arguments

$mapper

\Mapper

the Mapper to add.

Return <code>true</code> if this <code>ContainerMapper</code> or any of its sub-elements contains the specified <code>FileNameMapper</code>.

contains(\FileNameMapper $fileNameMapper) : boolean
inherited

Arguments

$fileNameMapper

\FileNameMapper

the FileNameMapper to search for.

Response

boolean

Get the <code>List</code> of <code>Mapper</code>s.

getMappers() : array<mixed,\Mapper>
inherited

Response

array<mixed,\Mapper>

{@inheritDoc}.

main( $sourceFileName) 

Arguments

$sourceFileName

Empty implementation.

setFrom(string $ignore) : void
inherited

Arguments

$ignore

string

ignored.

Empty implementation.

setTo(string $ignore) : void
inherited

Arguments

$ignore

string

ignored.

Properties

mappers

mappers : array<mixed,\Mapper>
inherited
var

Type(s)

array<mixed,\Mapper>