public function addChangeSet($tracked,$eventMask)
    {
        if($tracked instanceof TrackedObject){
            $path = $tracked->getResource();
            if($this->fileOnly && !$tracked->getResource() instanceof FileResource){
                return;
            }
        }else{
            $path = $tracked;
        }
        $event = new FilesystemEvent($path,$eventMask);
        $id = md5($path);
        $this->changeSet[$id] = $event;
    }
public function addChangeSet($tracked,$eventMask)
    {
        if($tracked instanceof TrackedObject){
            $path = $tracked->getResource();
            if($this->fileOnly && !$tracked->getResource() instanceof FileResource){
                return;
            }
        }else{
            $path = $tracked;
        }
        $event = new FilesystemEvent($path,$eventMask);
        $id = md5($path);
        $this->changeSet[$id] = $event;
    }
public function addChangeSet ( $ tracked , $ eventMask ) { if ( $ tracked instanceof TrackedObject ) { $ path = $ tracked -> getResource ( ) ; if ( $ this -> fileOnly && ! $ tracked -> getResource ( ) instanceof FileResource ) { return ; } } else { $ path = $ tracked ; } $ event = new FilesystemEvent ( $ path , $ eventMask ) ; $ id = md5 ( $ path ) ; $ this -> changeSet [ $ id ] = $ event ; }
Add a new event to changeset

@param TrackedObject $tracked
@param int             $eventMask
Add a new event to changeset