public function run()
    {
        $guard = $this->getMonitoringInputs();
        if (empty($guard)) {
            throw new \RuntimeException("Nothing to monitor ! Either configure the IDS to monitor at least one input or 
                completely deactivate this feature.");
        }
        $this->manager->run($guard);
        if ($this->manager->getImpact() > 0) {
            $data = $this->getDetectionData($this->manager->getReports());

            throw new IntrusionDetectionException($data);
        }
    }
public function run()
    {
        $guard = $this->getMonitoringInputs();
        if (empty($guard)) {
            throw new \RuntimeException("Nothing to monitor ! Either configure the IDS to monitor at least one input or 
                completely deactivate this feature.");
        }
        $this->manager->run($guard);
        if ($this->manager->getImpact() > 0) {
            $data = $this->getDetectionData($this->manager->getReports());

            throw new IntrusionDetectionException($data);
        }
    }
public function run ( ) { $ guard = $ this -> getMonitoringInputs ( ) ; if ( empty ( $ guard ) ) { throw new \ RuntimeException ( "Nothing to monitor ! Either configure the IDS to monitor at least one input or 
                completely deactivate this feature." ) ; } $ this -> manager -> run ( $ guard ) ; if ( $ this -> manager -> getImpact ( ) > 0 ) { $ data = $ this -> getDetectionData ( $ this -> manager -> getReports ( ) ) ; throw new IntrusionDetectionException ( $ data ) ; } }
Execute the intrusion detection analysis using the specified monitored
inputs. If an intrusion is detected, the method will launch the detection
callback.

@throws IntrusionDetectionException
Execute the intrusion detection analysis using the specified monitored inputs . If an intrusion is detected the method will launch the detection callback .