Misc fixes and improvements
* Added request logging to com.noccy.apiclient * Added plugin com.noccy.watcher * Added pipe command and filter support * Fixes and stubs
This commit is contained in:
28
plugins/com.noccy.watcher/Monitor/MonitorInterface.php
Normal file
28
plugins/com.noccy.watcher/Monitor/MonitorInterface.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
|
||||
namespace SparkPlug\Com\Noccy\Watcher\Monitor;
|
||||
|
||||
use SparkPlug\Com\Noccy\Watcher\Rule;
|
||||
|
||||
interface MonitorInterface
|
||||
{
|
||||
/**
|
||||
* Add a rule to be watched for changes
|
||||
*/
|
||||
public function add(Rule $rule);
|
||||
|
||||
/**
|
||||
* Return a list of modified filenames
|
||||
*/
|
||||
public function getModified(): array;
|
||||
|
||||
/**
|
||||
* Return a list of watched filenames
|
||||
*/
|
||||
public function getWatched(): array;
|
||||
|
||||
/**
|
||||
* Called periodically to refresh monitors
|
||||
*/
|
||||
public function loop();
|
||||
}
|
Reference in New Issue
Block a user