PHP Class pharext\SourceDir\Pecl

Inheritance: implements IteratorAggregate, implements pharext\SourceDir, use trait pharext\License
Show file Open project: m6w6/pharext Class Usage Examples

Public Methods

Method Description
__construct ( $path )
getArgs ( )
getBaseDir ( )
getIterator ( ) Implements IteratorAggregate
getLicense ( ) : string
getPackageInfo ( ) : Generator Retrieve gathered package info
setArgs ( Args $args )

Private Methods

Method Description
dirOf ( SimpleXMLElement $ele ) : string Compute the path of a file by parent dir nodes
generateFiles ( ) : Generator Generate a list of files from the package.xml

Method Details

__construct() public method

See also: pharext\SourceDir::__construct()
public __construct ( $path )

getArgs() public method

See also: pharext\SourceDir::getArgs()
public getArgs ( )

getBaseDir() public method

See also: pharext\SourceDir::getBaseDir()
public getBaseDir ( )

getIterator() public method

Implements IteratorAggregate
See also: IteratorAggregate::getIterator()
public getIterator ( )

getLicense() public method

public getLicense ( ) : string
return string

getPackageInfo() public method

Retrieve gathered package info
public getPackageInfo ( ) : Generator
return Generator

setArgs() public method

See also: pharext\SourceDir::setArgs()
public setArgs ( Args $args )
$args pharext\Cli\Args