src/ExceptionIdentifier.php
public function identify(Exception $exception)
    {
        $hash = spl_object_hash($exception);

        // if we know about the exception, return it's id
        if (isset($this->identification[$hash])) {
            return $this->identification[$hash];
        }

        // cleanup in preparation for the identification
        if (count($this->identification) >= 16) {
            array_shift($this->identification);
        }

        // generate, store, and return the id
        return $this->identification[$hash] = $this->generate();
    }
public function identify(Exception $exception)
    {
        $hash = spl_object_hash($exception);

        // if we know about the exception, return it's id
        if (isset($this->identification[$hash])) {
            return $this->identification[$hash];
        }

        // cleanup in preparation for the identification
        if (count($this->identification) >= 16) {
            array_shift($this->identification);
        }

        // generate, store, and return the id
        return $this->identification[$hash] = $this->generate();
    }
public function identify ( Exception $ exception ) { $ hash = spl_object_hash ( $ exception ) ; // if we know about the exception, return it's id if ( isset ( $ this -> identification [ $ hash ] ) ) { return $ this -> identification [ $ hash ] ; } // cleanup in preparation for the identification if ( count ( $ this -> identification ) >= 16 ) { array_shift ( $ this -> identification ) ; } // generate, store, and return the id return $ this -> identification [ $ hash ] = $ this -> generate ( ) ; }
Identify the given exception.

@param \Exception $exception

@return string
Identify the given exception .