Paubox_Email_SDK/Message.pm untested

filter: Statementstmt 0.0% 0 / 11 Branchbran n/a Conditioncond 0.0% 0 / 2 MC/DCmcdc 0.0% 0 / 1 Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 18 CC 1 SCAR 6.9
CC
1
Cov
0%
new
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 package Paubox_Email_SDK::Message;
2
3 use strict;
4 use warnings;
5
6 our $VERSION = '1.2';
7
8 # constructor
9 sub new {
10
11 # the package name 'Message' is in the default array @_
12 # shift will take package name 'message' and assign it to variable 'class'
13 my $class = shift;
14
15 my $self = bless {
16 'from' => '',
17 'replyTo' => '',
18 'to' => [],
19 'cc' => [],
20 'bcc' => [],
21 'subject' => '',
22 'allowNonTLS' => '' || 0,
23 'forceSecureNotification' => '',
24 'text_content' => '',
25 'html_content' => '',
26 'attachments' => [],
27 @_ }, $class;
28
29 # returning object from constructor
30 return $self;
31 }
32
33 1;