src/package/Services/Watcher.php
protected function getCachedEvent($event)
    {
        $path = $event->getResource()->getPath();

        return isset($this->eventCache[$path])
            ? $this->eventCache[$path]
            : $this->eventCache[$path] = Carbon::now()->subDay();
    }
protected function getCachedEvent($event)
    {
        $path = $event->getResource()->getPath();

        return isset($this->eventCache[$path])
            ? $this->eventCache[$path]
            : $this->eventCache[$path] = Carbon::now()->subDay();
    }
protected function getCachedEvent ( $ event ) { $ path = $ event -> getResource ( ) -> getPath ( ) ; return isset ( $ this -> eventCache [ $ path ] ) ? $ this -> eventCache [ $ path ] : $ this -> eventCache [ $ path ] = Carbon :: now ( ) -> subDay ( ) ; }
Get an event from cache.

@param $event

@return mixed|static
Get an event from cache .