protected function setup()
    {
        if (null === $this->identity) {
            throw new Exception\RuntimeException(
                'A value for the identity was not provided prior to authentication with ObjectRepository '
                . 'authentication adapter'
            );
        }

        if (null === $this->credential) {
            throw new Exception\RuntimeException(
                'A credential value was not provided prior to authentication with ObjectRepository'
                . ' authentication adapter'
            );
        }

        $this->authenticationResultInfo = array(
            'code' => AuthenticationResult::FAILURE,
            'identity' => $this->identity,
            'messages' => array()
        );
    }
protected function setup()
    {
        if (null === $this->identity) {
            throw new Exception\RuntimeException(
                'A value for the identity was not provided prior to authentication with ObjectRepository '
                . 'authentication adapter'
            );
        }

        if (null === $this->credential) {
            throw new Exception\RuntimeException(
                'A credential value was not provided prior to authentication with ObjectRepository'
                . ' authentication adapter'
            );
        }

        $this->authenticationResultInfo = array(
            'code' => AuthenticationResult::FAILURE,
            'identity' => $this->identity,
            'messages' => array()
        );
    }
protected function setup ( ) { if ( null === $ this -> identity ) { throw new Exception \ RuntimeException ( 'A value for the identity was not provided prior to authentication with ObjectRepository ' . 'authentication adapter' ) ; } if ( null === $ this -> credential ) { throw new Exception \ RuntimeException ( 'A credential value was not provided prior to authentication with ObjectRepository' . ' authentication adapter' ) ; } $ this -> authenticationResultInfo = array ( 'code' => AuthenticationResult :: FAILURE , 'identity' => $ this -> identity , 'messages' => array ( ) ) ; }
This method abstracts the steps involved with making sure that this adapter was
indeed setup properly with all required pieces of information.

@throws Exception\RuntimeException - in the event that setup was not done properly
This method abstracts the steps involved with making sure that this adapter was indeed setup properly with all required pieces of information .