public function onReflectProgress(GenericEvent $event)
    {
        static $start = false;

        if (!$start) {
            $this->stopwatch->start($event['source']);
            $start = true;
        }
        $this->stopwatch->start($event['file']->getPathname());
    }
public function onReflectProgress(GenericEvent $event)
    {
        static $start = false;

        if (!$start) {
            $this->stopwatch->start($event['source']);
            $start = true;
        }
        $this->stopwatch->start($event['file']->getPathname());
    }
public function onReflectProgress ( GenericEvent $ event ) { static $ start = false ; if ( ! $ start ) { $ this -> stopwatch -> start ( $ event [ 'source' ] ) ; $ start = true ; } $ this -> stopwatch -> start ( $ event [ 'file' ] -> getPathname ( ) ) ; }
Just before parsing a new file of the data source.

@param GenericEvent $event A 'reflect.progress' event

@return void
Just before parsing a new file of the data source .