classes/phing/types/selectors/FilenameSelector.php
public function setName($pattern)
    {
        $pattern = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $pattern);

        if (StringHelper::endsWith(DIRECTORY_SEPARATOR, $pattern)) {
            $pattern .= "**";
        }
        $this->pattern = $pattern;
    }
public function setName($pattern)
    {
        $pattern = str_replace(['\\', '/'], DIRECTORY_SEPARATOR, $pattern);

        if (StringHelper::endsWith(DIRECTORY_SEPARATOR, $pattern)) {
            $pattern .= "**";
        }
        $this->pattern = $pattern;
    }
public function setName ( $ pattern ) { $ pattern = str_replace ( [ '\\' , '/' ] , DIRECTORY_SEPARATOR , $ pattern ) ; if ( StringHelper :: endsWith ( DIRECTORY_SEPARATOR , $ pattern ) ) { $ pattern .= "**" ; } $ this -> pattern = $ pattern ; }
The name of the file, or the pattern for the name, that
should be used for selection.

@param string $pattern the file pattern that any filename must match
against in order to be selected.

@return void
The name of the file or the pattern for the name that should be used for selection .