PHP Class AppserverIo\Appserver\Core\Scanner\Mock\MockAbstractScanner

Inheritance: extends AppserverIo\Appserver\Core\Scanner\AbstractScanner
Show file Open project: appserver-io/appserver Class Usage Examples

Public Methods

Method Description
main ( ) : void The thread implementation main method which will be called from run in abstractness
testableGetDistributionVersion ( string | null $distribution = null, array $etcList = [] ) : string | boolean This method will check for the Linux release file normally stored in /etc and will return the version of the distribution

Protected Methods

Method Description
getEtcDir ( ) : string Returns the systems configuration root directory aka "etc"
getExtensionsToWatch ( ) : array Returns an array with file extensions that are used to create the directory hash.

Method Details

getEtcDir() protected method

Returns the systems configuration root directory aka "etc"
protected getEtcDir ( ) : string
return string

getExtensionsToWatch() protected method

Returns an array with file extensions that are used to create the directory hash.
See also: AppserverIo\Appserver\Core\Scanner\AbstractScanner::getDirectoryHash()
protected getExtensionsToWatch ( ) : array
return array The array with the file extensions

main() public method

The thread implementation main method which will be called from run in abstractness
public main ( ) : void
return void

testableGetDistributionVersion() public method

This method will check for the Linux release file normally stored in /etc and will return the version of the distribution
public testableGetDistributionVersion ( string | null $distribution = null, array $etcList = [] ) : string | boolean
$distribution string | null Distribution to search a version for
$etcList array List of already collected AND flipped release files we need to filter
return string | boolean