public function inlineAttachment($name, $content)
    {
        if (!is_string($content) && (!is_resource($content) || get_resource_type($content) != 'stream')) {
            throw new Exception\InvalidArgumentException(
                sprintf("Attachment content must be either string or stream, %s passed")
            );
        }
        
        $this->attachments[$name] = [
            'content' => $content,
            'inline'  => true
        ];
    }
public function inlineAttachment($name, $content)
    {
        if (!is_string($content) && (!is_resource($content) || get_resource_type($content) != 'stream')) {
            throw new Exception\InvalidArgumentException(
                sprintf("Attachment content must be either string or stream, %s passed")
            );
        }
        
        $this->attachments[$name] = [
            'content' => $content,
            'inline'  => true
        ];
    }
public function inlineAttachment ( $ name , $ content ) { if ( ! is_string ( $ content ) && ( ! is_resource ( $ content ) || get_resource_type ( $ content ) != 'stream' ) ) { throw new Exception \ InvalidArgumentException ( sprintf ( "Attachment content must be either string or stream, %s passed" ) ) ; } $ this -> attachments [ $ name ] = [ 'content' => $ content , 'inline' => true ] ; }
Just a quicker way to add an inline attachment.
Just a quicker way to add an inline attachment .