Option
class Option
Methods
No description
Create an Option from a watcher config array.
Parse a single watch config entry into a WatchPath.
Parse a glob pattern into a WatchPath with base directory and pattern.
Get all watch paths.
Get watch paths that are directories.
Get watch paths that are individual files.
Get the watcher driver class name.
Get the scan interval in milliseconds.
Get the scan interval in seconds.
Details
at line 14
__construct(string $driver = ScanFileDriver::class, array $watchPaths = [], int $scanInterval = 2000)
No description
at line 27
static Option
fromConfig(array $config, string $basePath, array $extraPaths = [])
Create an Option from a watcher config array.
at line 46
static protected WatchPath
parseEntry(string $entry, string $basePath)
Parse a single watch config entry into a WatchPath.
at line 62
static protected WatchPath
parseGlob(string $glob)
Parse a glob pattern into a WatchPath with base directory and pattern.
at line 80
array
getWatchPaths()
Get all watch paths.
at line 90
array
getDirectoryPaths()
Get watch paths that are directories.
at line 103
array
getFilePaths()
Get watch paths that are individual files.
at line 114
string
getDriver()
Get the watcher driver class name.
at line 122
int
getScanInterval()
Get the scan interval in milliseconds.
at line 130
float
getScanIntervalSeconds()
Get the scan interval in seconds.