Option
class Option
Constants
| protected DEFAULT_DRIVER |
|
| protected DEFAULT_SCAN_INTERVAL |
|
Methods
No description
Create an Option from a watcher config array.
Normalize a watch config entry.
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 19
__construct(string $driver = self::DEFAULT_DRIVER, array $watchPaths = [], int $scanInterval = self::DEFAULT_SCAN_INTERVAL)
No description
at line 35
static Option
fromConfig(array $config, string $basePath, array $extraPaths = [])
Create an Option from a watcher config array.
at line 63
static protected string
normalizeEntry(string $entry)
Normalize a watch config entry.
at line 86
static protected WatchPath
parseEntry(string $entry, string $basePath)
Parse a single watch config entry into a WatchPath.
at line 102
static protected WatchPath
parseGlob(string $glob)
Parse a glob pattern into a WatchPath with base directory and pattern.
at line 122
array
getWatchPaths()
Get all watch paths.
at line 132
array
getDirectoryPaths()
Get watch paths that are directories.
at line 145
array
getFilePaths()
Get watch paths that are individual files.
at line 156
string
getDriver()
Get the watcher driver class name.
at line 164
int
getScanInterval()
Get the scan interval in milliseconds.
at line 172
float
getScanIntervalSeconds()
Get the scan interval in seconds.