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;
    }
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;
    }
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 ; }
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
Initializes a Resource object