protected function setCurrentEndpoint(EndpointInterface $Endpoint)
    {
        if (isset($this->currentEndPoint)){
            unset($this->lastEndPoint);
            $this->lastEndPoint = $this->currentEndPoint;
            unset($this->currentEndPoint);
        }
        $this->currentEndPoint = $Endpoint;
        return $this;
    }
protected function setCurrentEndpoint(EndpointInterface $Endpoint)
    {
        if (isset($this->currentEndPoint)){
            unset($this->lastEndPoint);
            $this->lastEndPoint = $this->currentEndPoint;
            unset($this->currentEndPoint);
        }
        $this->currentEndPoint = $Endpoint;
        return $this;
    }
protected function setCurrentEndpoint ( EndpointInterface $ Endpoint ) { if ( isset ( $ this -> currentEndPoint ) ) { unset ( $ this -> lastEndPoint ) ; $ this -> lastEndPoint = $ this -> currentEndPoint ; unset ( $ this -> currentEndPoint ) ; } $ this -> currentEndPoint = $ Endpoint ; return $ this ; }
Rotates current Endpoint to Last Endpoint, and sets Current Endpoint with passed in Endpoint
@param EndpointInterface $Endpoint
@return self
Rotates current Endpoint to Last Endpoint and sets Current Endpoint with passed in Endpoint