original_string: public function addRequest (CAS_Request_RequestInterface $request)
      {
          if ($this->_sent) {
              throw new CAS_OutOfSequenceException(
                  'Request has already been sent cannot '.__METHOD__
              );
          }
          if (!$request instanceof CAS_Request_CurlRequest) {
              throw new CAS_InvalidArgumentException(
                  'As a CAS_Request_CurlMultiRequest, I can only work with CAS_Request_CurlRequest objects.'
              );
          }
  
          $this->_requests[] = $request;
      }
code: public function addRequest (CAS_Request_RequestInterface $request)
      {
          if ($this->_sent) {
              throw new CAS_OutOfSequenceException(
                  'Request has already been sent cannot '.__METHOD__
              );
          }
          if (!$request instanceof CAS_Request_CurlRequest) {
              throw new CAS_InvalidArgumentException(
                  'As a CAS_Request_CurlMultiRequest, I can only work with CAS_Request_CurlRequest objects.'
              );
          }
  
          $this->_requests[] = $request;
      }
code_tokens: public function addRequest ( CAS_Request_RequestInterface $ request ) { if ( $ this -> _sent ) { throw new CAS_OutOfSequenceException ( 'Request has already been sent cannot ' . __METHOD__ ) ; } if ( ! $ request instanceof CAS_Request_CurlRequest ) { throw new CAS_InvalidArgumentException ( 'As a CAS_Request_CurlMultiRequest, I can only work with CAS_Request_CurlRequest objects.' ) ; } $ this -> _requests [ ] = $ request ; }
docstring: Add a new Request to this batch.
  Note, implementations will likely restrict requests to their own concrete
  class hierarchy.
  
  @param CAS_Request_RequestInterface $request reqest to add
  
  @return void
  @throws CAS_OutOfSequenceException If called after the Request has been sent.
  @throws CAS_InvalidArgumentException If passed a Request of the wrong
  implmentation.
docstring_tokens: Add a new Request to this batch . Note implementations will likely restrict requests to their own concrete class hierarchy .