PHP Класс AppserverIo\Appserver\Core\Scanner\Mock\MockAbstractScanner

Автор: Bernhard Wick ([email protected])
Наследование: extends AppserverIo\Appserver\Core\Scanner\AbstractScanner
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
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.

Описание методов

getEtcDir() защищенный метод

Returns the systems configuration root directory aka "etc"
protected getEtcDir ( ) : string
Результат string

getExtensionsToWatch() защищенный метод

Returns an array with file extensions that are used to create the directory hash.
См. также: AppserverIo\Appserver\Core\Scanner\AbstractScanner::getDirectoryHash()
protected getExtensionsToWatch ( ) : array
Результат array The array with the file extensions

main() публичный метод

The thread implementation main method which will be called from run in abstractness
public main ( ) : void
Результат void

testableGetDistributionVersion() публичный метод

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
Результат string | boolean