original_string: public function setAuth(Zend_Amf_Auth_Abstract $auth)
      {
          $this->_auth = $auth;
          if ((null === $this->getAcl()) && method_exists($auth, 'getAcl')) {
              $this->setAcl($auth->getAcl());
          }
          return $this;
      }
code: public function setAuth(Zend_Amf_Auth_Abstract $auth)
      {
          $this->_auth = $auth;
          if ((null === $this->getAcl()) && method_exists($auth, 'getAcl')) {
              $this->setAcl($auth->getAcl());
          }
          return $this;
      }
code_tokens: public function setAuth ( Zend_Amf_Auth_Abstract $ auth ) { $ this -> _auth = $ auth ; if ( ( null === $ this -> getAcl ( ) ) && method_exists ( $ auth , 'getAcl' ) ) { $ this -> setAcl ( $ auth -> getAcl ( ) ) ; } return $ this ; }
docstring: Set authentication adapter
  
  If the authentication adapter implements a "getAcl()" method, populate
  the ACL of this instance with it (if none exists already).
  
  @param  Zend_Amf_Auth_Abstract $auth
  @return Zend_Amf_Server
docstring_tokens: Set authentication adapter