public function getStream()
    {
        if (false === \is_resource($this->resource) || 'imap' !== \get_resource_type($this->resource)) {
            throw new InvalidResourceException('Supplied resource is not a valid imap resource');
        }

        $this->initMailbox();

        return $this->resource;
    }
public function getStream()
    {
        if (false === \is_resource($this->resource) || 'imap' !== \get_resource_type($this->resource)) {
            throw new InvalidResourceException('Supplied resource is not a valid imap resource');
        }

        $this->initMailbox();

        return $this->resource;
    }
public function getStream ( ) { if ( false === \ is_resource ( $ this -> resource ) || 'imap' !== \ get_resource_type ( $ this -> resource ) ) { throw new InvalidResourceException ( 'Supplied resource is not a valid imap resource' ) ; } $ this -> initMailbox ( ) ; return $ this -> resource ; }
Get IMAP resource stream.

@throws InvalidResourceException

@return resource
Get IMAP resource stream .