src/Network/Observer/ConnectionObserverCollection.php
public function addObserver(ConnectionObserver $observer)
    {
        if (!in_array($observer, $this->observers, true)) {
            $this->observers[] = $observer;
        }
        return $this;
    }
public function addObserver(ConnectionObserver $observer)
    {
        if (!in_array($observer, $this->observers, true)) {
            $this->observers[] = $observer;
        }
        return $this;
    }
public function addObserver ( ConnectionObserver $ observer ) { if ( ! in_array ( $ observer , $ this -> observers , true ) ) { $ this -> observers [ ] = $ observer ; } return $ this ; }
Adds new observers to the collection.

@param ConnectionObserver $observer
@return ConnectionObserverCollection this collection
Adds new observers to the collection .