App\Libraries\WatchRecord\InotifyWatchRecord::isNewOrModified PHP Method

isNewOrModified() public method

For our purpose, we watch both the CREATE and the CLOSE_WRITE event, because some operating systems only support CREATE, but not CLOSE_WRITE and MOVED_TO. Additionally, a MOVED_TO (occurred after the object has been moved/renamed to another location **under our watched directory**) should be considered as "modified" also.
public isNewOrModified ( ) : boolean
return boolean
    public function isNewOrModified()
    {
        return $this->eventExists('CLOSE_WRITE') || $this->eventExists('CREATE') || $this->eventExists('MOVED_TO');
    }