public function collectInspectionsOnApplicationFinish(EventInterface $event)
    {
        $inspection = $this->inspector->inspect($event);
        $uuid       = $this->uuidGenerator->generateUUID();

        $this->inspectionRepository->add($uuid, $inspection);

        $event->setParam(self::PARAM_INSPECTION, $inspection);
        $event->setParam(self::PARAM_INSPECTION_ID, $uuid);

        return $uuid;
    }
public function collectInspectionsOnApplicationFinish(EventInterface $event)
    {
        $inspection = $this->inspector->inspect($event);
        $uuid       = $this->uuidGenerator->generateUUID();

        $this->inspectionRepository->add($uuid, $inspection);

        $event->setParam(self::PARAM_INSPECTION, $inspection);
        $event->setParam(self::PARAM_INSPECTION_ID, $uuid);

        return $uuid;
    }
public function collectInspectionsOnApplicationFinish ( EventInterface $ event ) { $ inspection = $ this -> inspector -> inspect ( $ event ) ; $ uuid = $ this -> uuidGenerator -> generateUUID ( ) ; $ this -> inspectionRepository -> add ( $ uuid , $ inspection ) ; $ event -> setParam ( self :: PARAM_INSPECTION , $ inspection ) ; $ event -> setParam ( self :: PARAM_INSPECTION_ID , $ uuid ) ; return $ uuid ; }
Collects and persists the current inspection results

@param EventInterface $event

@return string
Collects and persists the current inspection results