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

Inheritance: extends AppserverIo\Appserver\Core\Scanner\AbstractScanner
Afficher le fichier Open project: appserver-io/appserver Class Usage Examples

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode 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 méthode

Returns the systems configuration root directory aka "etc"
protected getEtcDir ( ) : string
Résultat string

getExtensionsToWatch() protected méthode

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
Résultat array The array with the file extensions

main() public méthode

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

testableGetDistributionVersion() public méthode

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
Résultat string | boolean