PHP Class Sculpin\Core\Source\SourceSet

Author: Beau Simensen ([email protected])
Show file Open project: sculpin/sculpin Class Usage Examples

Protected Properties

Property Type Description
$newSources array New Sources
$sources array Sources

Public Methods

Method Description
__construct ( array $sources = [] ) Constructor.
allSources ( ) : array All sources
containsSource ( Sculpin\Core\Source\SourceInterface $source ) : boolean Set contains the source?
mergeSource ( Sculpin\Core\Source\SourceInterface $source ) Merge a source
newSources ( )
reset ( ) Reset all sources
updatedSources ( ) : array All sources that have been updated

Method Details

__construct() public method

Constructor.
public __construct ( array $sources = [] )
$sources array

allSources() public method

All sources
public allSources ( ) : array
return array

containsSource() public method

Set contains the source?
public containsSource ( Sculpin\Core\Source\SourceInterface $source ) : boolean
$source Sculpin\Core\Source\SourceInterface
return boolean

mergeSource() public method

Merge a source
public mergeSource ( Sculpin\Core\Source\SourceInterface $source )
$source Sculpin\Core\Source\SourceInterface

newSources() public method

public newSources ( )

reset() public method

Should be called after each loop while watching.
public reset ( )

updatedSources() public method

All sources that have been updated
public updatedSources ( ) : array
return array

Property Details

$newSources protected property

New Sources
protected array $newSources
return array

$sources protected property

Sources
protected array $sources
return array