예제 #1
0
파일: Watcher.php 프로젝트: shulard/File
 /**
  * Constructor.
  *
  * @param   int  $latency    Latency (in seconds).
  * @return  void
  */
 public function __construct($latency = null)
 {
     parent::__construct();
     $this->setListener(new Event\Listener($this, ['new', 'modify', 'move']));
     if (null !== $latency) {
         $this->setLatency($latency);
     }
     return;
 }