private function disableAll()
    {
        // set all non-error endpoints to disabled
        $this->getEndpoints()->map(function (Endpoint $endpoint) {
            if ($endpoint->isError() === false) {
                $endpoint->setStatus(Endpoint::STATUS_DISABLED);
            }
        });
    }
private function disableAll()
    {
        // set all non-error endpoints to disabled
        $this->getEndpoints()->map(function (Endpoint $endpoint) {
            if ($endpoint->isError() === false) {
                $endpoint->setStatus(Endpoint::STATUS_DISABLED);
            }
        });
    }
private function disableAll ( ) { // set all non-error endpoints to disabled $ this -> getEndpoints ( ) -> map ( function ( Endpoint $ endpoint ) { if ( $ endpoint -> isError ( ) === false ) { $ endpoint -> setStatus ( Endpoint :: STATUS_DISABLED ) ; } } ) ; }
Disable all endpoints, except the ones in error.

@throws InputException
Disable all endpoints except the ones in error .