blib/lib/AsposePdfCloud/Object/Stamp.pm

filter: Statementstmt 87.1% 34 / 39 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 76.9% 10 / 13 Podpod 0.0% 0 / 3 totaltotal 80.0% 44 / 55 SCAR 0.0
CC
1
Cov
87%
new
2.0
get_swagger_types
2.0
get_attribute_map
2.0
CRAP 1.0
« blib/lib/AsposePdfCloud/Object/Signature.pm ↑ Summary blib/lib/AsposePdfCloud/Object/TextReplace.pm »
1 package AsposePdfCloud::Object::Stamp;
2  
3 1 require 5.6.0;
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use JSON qw(decode_json);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use Module::Runtime qw(use_module);
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 ▶use Log::Any qw($log);
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 ▶use Date::Parse;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 1 ▶use DateTime;
Subroutine BEGIN: called CC=1 SCAR=0.0
13  
14 1 ▶use base "AsposePdfCloud::Object::BaseObject";
Subroutine BEGIN: called CC=1 SCAR=0.0
15  
16 #
17 #
18 #
19 #NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
20 #
21  
22 1 my $swagger_types = {
23 'Type' => 'StampType',
24 'Background' => 'boolean',
25 'BottomMargin' => 'double',
26 'HorizontalAlignment' => 'HorizontalAlignment',
27 'LeftMargin' => 'double',
28 'Opacity' => 'double',
29 'RightMargin' => 'double',
30 'Rotate' => 'Rotation',
31 'RotateAngle' => 'double',
32 'TopMargin' => 'double',
33 'VerticalAlignment' => 'VerticalAlignment',
34 'XIndent' => 'double',
35 'YIndent' => 'double',
36 'Zoom' => 'double',
37 'TextAlignment' => 'HorizontalAlignment',
38 'Value' => 'string',
39 'TextState' => 'TextState',
40 'FileName' => 'string',
41 'Width' => 'double',
42 'Height' => 'double',
43 'PageIndex' => 'int',
44 'StartingNumber' => 'int'
45 };
46  
47 1 my $attribute_map = {
48 'Type' => 'Type',
49 'Background' => 'Background',
50 'BottomMargin' => 'BottomMargin',
51 'HorizontalAlignment' => 'HorizontalAlignment',
52 'LeftMargin' => 'LeftMargin',
53 'Opacity' => 'Opacity',
54 'RightMargin' => 'RightMargin',
55 'Rotate' => 'Rotate',
56 'RotateAngle' => 'RotateAngle',
57 'TopMargin' => 'TopMargin',
58 'VerticalAlignment' => 'VerticalAlignment',
59 'XIndent' => 'XIndent',
60 'YIndent' => 'YIndent',
61 'Zoom' => 'Zoom',
62 'TextAlignment' => 'TextAlignment',
63 'Value' => 'Value',
64 'TextState' => 'TextState',
65 'FileName' => 'FileName',
66 'Width' => 'Width',
67 'Height' => 'Height',
68 'PageIndex' => 'PageIndex',
69 'StartingNumber' => 'StartingNumber'
70 };
71  
72 # new object
73 sub new {
74 0 ▶ my ($class, %args) = @_;
Subroutine new: not called CC=1 SCAR=6.9
Pod undocumented
75 my $self = {
76 #
77 'Type' => $args{'Type'},
78 #
79 'Background' => $args{'Background'},
80 #
81 'BottomMargin' => $args{'BottomMargin'},
82 #
83 'HorizontalAlignment' => $args{'HorizontalAlignment'},
84 #
85 'LeftMargin' => $args{'LeftMargin'},
86 #
87 'Opacity' => $args{'Opacity'},
88 #
89 'RightMargin' => $args{'RightMargin'},
90 #
91 'Rotate' => $args{'Rotate'},
92 #
93 'RotateAngle' => $args{'RotateAngle'},
94 #
95 'TopMargin' => $args{'TopMargin'},
96 #
97 'VerticalAlignment' => $args{'VerticalAlignment'},
98 #
99 'XIndent' => $args{'XIndent'},
100 #
101 'YIndent' => $args{'YIndent'},
102 #
103 'Zoom' => $args{'Zoom'},
104 #
105 'TextAlignment' => $args{'TextAlignment'},
106 #
107 'Value' => $args{'Value'},
108 #
109 'TextState' => $args{'TextState'},
110 #
111 'FileName' => $args{'FileName'},
112 #
113 'Width' => $args{'Width'},
114 #
115 'Height' => $args{'Height'},
116 #
117 'PageIndex' => $args{'PageIndex'},
118 #
119 0 'StartingNumber' => $args{'StartingNumber'}
120 };
121  
122 0 return bless $self, $class;
123 }
124  
125 # get swagger type of the attribute
126 sub get_swagger_types {
127 0 ▶ return $swagger_types;
Subroutine get_swagger_types: not called CC=1 SCAR=6.9
Pod undocumented
128 }
129  
130 # get attribute mappping
131 sub get_attribute_map {
132 0 ▶ return $attribute_map;
Subroutine get_attribute_map: not called CC=1 SCAR=6.9
Pod undocumented
133 }
134  
135 1 1;
« blib/lib/AsposePdfCloud/Object/Signature.pm ↑ Summary blib/lib/AsposePdfCloud/Object/TextReplace.pm »