src/Observer/StandardSplSubjectTrait.php
public function attach(\SplObserver $observer): void
    {
        $id = spl_object_hash($observer);
        $this->_observers[$id] = $observer;
    }
public function attach(\SplObserver $observer): void
    {
        $id = spl_object_hash($observer);
        $this->_observers[$id] = $observer;
    }
public function attach ( \ SplObserver $ observer ) : void { $ id = spl_object_hash ( $ observer ) ; $ this -> _observers [ $ id ] = $ observer ; }
Attaches an SplObserver to
the ExceptionHandler to be notified
when an uncaught Exception is thrown.

@param \SplObserver $observer
@return void
Attaches an SplObserver to the ExceptionHandler to be notified when an uncaught Exception is thrown .