public function getFileNameFromReport()
    {
        $filename = '';

        if ($this->getStatus()->isFailed() || is_null($this->getReport())) {
            return $filename;
        }

        /** @var Report  $successReport */
        foreach ($this->getReport()->getSuccesses() as $successReport) {
            $data = $successReport->getData();
            if (is_string($data)) {
                $filename = $data;
                break;
            }

            if (is_array($data) && isset($data['uriResource'])) {
                $filename = $data['uriResource'];
            }
        }

        return $filename;
    }
public function getFileNameFromReport()
    {
        $filename = '';

        if ($this->getStatus()->isFailed() || is_null($this->getReport())) {
            return $filename;
        }

        /** @var Report  $successReport */
        foreach ($this->getReport()->getSuccesses() as $successReport) {
            $data = $successReport->getData();
            if (is_string($data)) {
                $filename = $data;
                break;
            }

            if (is_array($data) && isset($data['uriResource'])) {
                $filename = $data['uriResource'];
            }
        }

        return $filename;
    }
public function getFileNameFromReport ( ) { $ filename = '' ; if ( $ this -> getStatus ( ) -> isFailed ( ) || is_null ( $ this -> getReport ( ) ) ) { return $ filename ; } /** @var Report  $successReport */ foreach ( $ this -> getReport ( ) -> getSuccesses ( ) as $ successReport ) { $ data = $ successReport -> getData ( ) ; if ( is_string ( $ data ) ) { $ filename = $ data ; break ; } if ( is_array ( $ data ) && isset ( $ data [ 'uriResource' ] ) ) { $ filename = $ data [ 'uriResource' ] ; } } return $ filename ; }
Returns the file name from the generated report.

NOTE: it is not 100% sure that the returned string is really a file name because different reports set different values as data.
So this return value can be any kind of string. Please check the file whether it exist or not before usage.

@return string
Returns the file name from the generated report .