# classes/phing/mappers/FlattenMapper.php

Removes any directory information from the passed path.

author
  Andreas Aderhold
package
  phing.mappers
version
  $Revision: 526 $

## \FlattenMapper
jump to top

Removes any directory information from the passed path.

Implements
  \FileNameMapper
author
  Andreas Aderhold
package
  phing.mappers
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 |

`setFrom( $from ) :`
Ignored here.
Parameters

Name | Type | Description
--- | --- | ---
$from |  |

`setTo( $to ) :`
Ignored here.
Parameters

Name | Type | Description
--- | --- | ---
$to |  |

Documentation was generated by DocBlox 0.13.1.