* Added request logging to com.noccy.apiclient * Added plugin com.noccy.watcher * Added pipe command and filter support * Fixes and stubs
		
			
				
	
	
		
			28 lines
		
	
	
		
			515 B
		
	
	
	
		
			PHP
		
	
	
	
	
	
			
		
		
	
	
			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();
 | 
						|
} |