php-spark/plugins/com.noccy.watcher/Monitor/MonitorInterface.php
Christopher Vagnetoft 30dfd4889b 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
2021-12-14 23:01:25 +01:00

28 lines
515 B
PHP

<?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();
}