# mappers/FlattenMapper.php

Removes any directory information from the passed path.

Author
  Andreas Aderhold
Package
  phing.mappers
Version
  $Revision: 526 $

## \FlattenMapper
jump to top

Package: phing\mappers

Removes any directory information from the passed path.

Implements
  \FileNameMapper
Author
  Andreas Aderhold
Version
  $Revision: 526 $

### Methods

`main( string $sourceFileName ) : array`

The mapper implementation. Returns string with source filename but without leading directory information

Parameters

Name | Type | Description
--- | --- | ---
$sourceFileName | string | The data the mapper works on

Returns

Type | Description
--- | ---
array | The data after the mapper has been applied

`setFrom( string $from ) : void`

Ignored here.

Parameters

Name | Type | Description
--- | --- | ---
$from | string | On what this mapper should work

`setTo( string $to ) : void`

Ignored here.

Parameters

Name | Type | Description
--- | --- | ---
$to | string | To what this mapper should convert the from string

Documentation was generated by DocBlox 0.15.1.