PHP Class Phulp\Source

Show file Open project: reisraff/phulp Class Usage Examples

Public Methods

Method Description
__construct ( array $dirs, string $pattern = '', boolean $recursive = false )
addDistFile ( DistFile $distFile )
getDistFiles ( ) : Collection | DistFile[] Gets the value of distFiles.
pipe ( phulp\PipeInterface $pipe ) : self
removeDistFile ( integer $key )
setDistFiles ( Collection $distFiles ) Gets the value of distFiles.

Method Details

__construct() public method

public __construct ( array $dirs, string $pattern = '', boolean $recursive = false )
$dirs array
$pattern string
$recursive boolean

addDistFile() public method

public addDistFile ( DistFile $distFile )
$distFile DistFile

getDistFiles() public method

Gets the value of distFiles.
public getDistFiles ( ) : Collection | DistFile[]
return Collection | DistFile[] $distFiles

pipe() public method

public pipe ( phulp\PipeInterface $pipe ) : self
$pipe phulp\PipeInterface
return self

removeDistFile() public method

public removeDistFile ( integer $key )
$key integer

setDistFiles() public method

Gets the value of distFiles.
public setDistFiles ( Collection $distFiles )
$distFiles Collection