original_string: public function init($sourceId, $resourceId, $resource)
      {
          // Setting unique source and resource ids
          $this->resourceId = $resourceId;
          $this->sourceId   = $sourceId;
  
          // Setting message object
          if (!$resource instanceof ZendMessage) {
              throw new BadResourceConfigurationException(
                  sprintf(
                      'Remote resource handler is expected to be an instance of \'\Zend\Mail\Storage\Message\', but got \'%s\'.',
                      get_class($resource)
                  )
              );
          }
          $this->message = $resource;
      }
code: public function init($sourceId, $resourceId, $resource)
      {
          // Setting unique source and resource ids
          $this->resourceId = $resourceId;
          $this->sourceId   = $sourceId;
  
          // Setting message object
          if (!$resource instanceof ZendMessage) {
              throw new BadResourceConfigurationException(
                  sprintf(
                      'Remote resource handler is expected to be an instance of \'\Zend\Mail\Storage\Message\', but got \'%s\'.',
                      get_class($resource)
                  )
              );
          }
          $this->message = $resource;
      }
code_tokens: public function init ( $ sourceId , $ resourceId , $ resource ) { // Setting unique source and resource ids $ this -> resourceId = $ resourceId ; $ this -> sourceId = $ sourceId ; // Setting message object if ( ! $ resource instanceof ZendMessage ) { throw new BadResourceConfigurationException ( sprintf ( 'Remote resource handler is expected to be an instance of \'\Zend\Mail\Storage\Message\', but got \'%s\'.' , get_class ( $ resource ) ) ) ; } $ this -> message = $ resource ; }
docstring: Initializes a Resource object
  
  @param string $sourceId   the source id for this resource (the source being the remote server in which the resource is allocated)
  @param string $resourceId the resource id for the given resource object
  @param mixed  $resource   the remote resource handler object (e.g. \Zend\Mail\Storage\Message)
  
  @throws BadResourceConfigurationException
  
  @return void
docstring_tokens: Initializes a Resource object