original_string: public function setLdap(Zend_Ldap $ldap)
      {
          $this->_ldap = $ldap;
  
          $this->setOptions(array($ldap->getOptions()));
  
          return $this;
      }
code: public function setLdap(Zend_Ldap $ldap)
      {
          $this->_ldap = $ldap;
  
          $this->setOptions(array($ldap->getOptions()));
  
          return $this;
      }
code_tokens: public function setLdap ( Zend_Ldap $ ldap ) { $ this -> _ldap = $ ldap ; $ this -> setOptions ( array ( $ ldap -> getOptions ( ) ) ) ; return $ this ; }
docstring: Set an Ldap connection
  
  @param Zend_Ldap $ldap An existing Ldap object
  @return Zend_Auth_Adapter_Ldap Provides a fluent interface
docstring_tokens: Set an Ldap connection