blib/lib/Indexuri/Apartament.pm

filter: Statementstmt 17.5% 17 / 97 Branchbran 2.9% 1 / 34 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.8% 5 / 24 Podpod 47.0% 8 / 17 totaltotal 18.0% 31 / 172 CC 17 SCAR 16.2
CC
17
Cov
14%
getIApaBucRece
6.0
setIApaBucRece
6.0
getIApaBucCalda
6.0
CRAP 5.1
↑ Summary
1 package Indexuri::Apartament;
2  
3 2 ▶use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 2 ▶use warnings FATAL => 'all';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 2 ▶use feature qw/say/;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 2 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 =head1 NAME
10  
11 Indexuri::Apartament -This code store index of utilities!
12  
13 =head1 VERSION
14  
15 Version 0.02
16  
17 =cut
18 2 our $VERSION = '0.02';
19  
20 2 ▶__PACKAGE__->_run unless caller();
Branch: 1 branch
BranchTrueFalseTotal
unless caller() 0 2 2
21  
22 =head1 SYNOPSIS
23  
24 The module store the index of utilities.
25  
26 Perhaps a little code snippet.
27  
28 use Indexuri::Apartament;
29  
30 my $foo = Indexuri::Apartament->new(890, 456, 456, 456, 300, 400, 500, 600);
31 ...
32
33 More info in file : t/useApartament.plx
34  
35 =head1 SUBROUTINES/METHODS
36  
37 =head2 The Constructor new($Int1, $Int2, $Int3, $Int4, $Int5, $Int6, $Int7, $Int8)
38  
39 $newClass = new Indexuri::Apartament(100, 200, 300, 400, 500, 600, 700, 800);
40  
41 =cut
42  
43 0 ▶sub new {
Subroutine new: not called CC=1 SCAR=6.9
Pod documented
44 0 my $class = shift;
45 0 my $self = {};
46 0 bless ($self, $class);
47 0 $self->_init(@_);
48 0 return $self;
49 }
50 =head2 _init()
51  
52 This method is added in constructor.
53  
54 =cut
55 0 ▶sub _init {
Subroutine _init: not called CC=1 SCAR=6.9
56 0 my $self = shift;
57 0 $self-> {_IApaBucRece} = shift;
58 0 $self-> {_IApaBucCalda} = shift;
59 0 $self-> {_IApaBaiRece} = shift;
60 0 $self-> {_IApaBaiCalda} = shift;
61 0 $self-> {_IGaze } = shift;
62 0 $self-> {_ICal6261} = shift;
63 0 $self-> {_ICal6262} = shift;
64 0 $self-> {_ICal6263} = shift;
65 }
66 =head2 getIApaBucRece()
67  
68 This get the value from constructor.
69  
70 print $foo->getIApaBucRece; #OUTPUT: 890
71 =cut
72  
73 0 ▶sub getIApaBucRece {
Subroutine getIApaBucRece: not called CC=2 SCAR=17.9
Pod undocumented
74 0 my $self = shift;
75 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
76 0 croak "Should call method with an object";
77 }
78 0 return $self->{_IApaBucRece};
79 }
80 =head2 setIApaBucRece($Int1)
81  
82 This set a new value for variable _IApaBucRece from constructor
83  
84 $foo->setIApaBucRece(200);
85 print $foo->getIApaBucRece; #NEW OUTPUT: 200
86
87 =cut
88  
89 0 ▶sub setIApaBucRece {
Subroutine setIApaBucRece: not called CC=2 SCAR=17.9
Pod undocumented
90 0 my ($self, $IApaBucRece)= @_;
91 0 ▶ $self->{_IApaBucRece}= $IApaBucRece if defined ($IApaBucRece);
Branch: 1 branch
BranchTrueFalseTotal
if defined $IApaBucRece 0 0 0
92 0 return $self->{_IApaBucRece};
93 }
94  
95 =head2 getIApaBucCalda()
96  
97 This get value $Int from object.
98  
99 =cut
100  
101 0 ▶sub getIApaBucCalda {
Subroutine getIApaBucCalda: not called CC=2 SCAR=17.9
Pod documented
102 0 my $self = shift;
103 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
104 0 croak "Should call method with an object";
105 }
106 0 return $self->{_IApaBucCalda};
107 }
108 =head2 setIApaBucCalda($Int)
109  
110 This method set the value from constructor object.
111  
112 =cut
113 0 ▶sub setIApaBucCalda {
Subroutine setIApaBucCalda: not called CC=2 SCAR=17.9
Pod undocumented
114 0 my ($self, $IApaBucCalda)=@_;
115 0 ▶ $self->{_IApaBucCalda}=$IApaBucCalda if defined ($IApaBucCalda);
Branch: 1 branch
BranchTrueFalseTotal
if defined $IApaBucCalda 0 0 0
116 0 return $self->{_IApaBucCalda};
117 }
118  
119 =head2 getIApaBaiRece()
120  
121 This get the value from constructor object.
122  
123 =cut
124  
125 0 ▶sub getIApaBaiRece {
Subroutine getIApaBaiRece: not called CC=2 SCAR=17.9
Pod documented
126 0 my $self = shift;
127 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
128 0 croak "Should call method with an object";
129 }
130 0 return $self->{_IApaBaiRece};
131 }
132 =head2 setIApaBaiRece($Int)
133  
134 This method set the value from constructor object.
135  
136 =cut
137 0 ▶sub setIApaBaiRece {
Subroutine setIApaBaiRece: not called CC=2 SCAR=17.9
Pod undocumented
138 0 my ($self, $IApaBaiRece) = @_;
139 0 ▶ $self->{_IApaBaiRece}=$IApaBaiRece if defined ($IApaBaiRece);
Branch: 1 branch
BranchTrueFalseTotal
if defined $IApaBaiRece 0 0 0
140 0 return $self->{_IApaBaiRece};
141 }
142  
143 =head2 getIApaBaiCalda()
144  
145 Get the value from constructor object.
146  
147 =cut
148  
149 0 ▶sub getIApaBaiCalda {
Subroutine getIApaBaiCalda: not called CC=2 SCAR=17.9
Pod documented
150 0 my $self = shift;
151 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
152 0 croak "Should call method with an object";
153 }
154 0 return $self->{_IApaBaiCalda};
155 }
156 =head2 setIApaBaiCalda($Int)
157  
158 This method set the value from constructor object.
159  
160 =cut
161 0 ▶sub setIApaBaiCalda {
Subroutine setIApaBaiCalda: not called CC=2 SCAR=17.9
Pod undocumented
162 0 my ($self, $IApaBaiCalda) = @_;
163 0 ▶ $self->{_IApaBaiCalda}=$IApaBaiCalda if defined ($IApaBaiCalda);
Branch: 1 branch
BranchTrueFalseTotal
if defined $IApaBaiCalda 0 0 0
164 0 return $self->{_IApaBaiCalda};
165 }
166  
167 =head2 getIGaze()
168  
169 Get the value from constructor object.
170  
171 =cut
172  
173 0 ▶sub getIGaze {
Subroutine getIGaze: not called CC=2 SCAR=17.9
Pod documented
174 0 my $self = shift;
175 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
176 0 croak "Should call method with an object";
177 }
178 0 return $self->{_IGaze};
179 }
180 =head2 setIGaze($Int)
181  
182 Set the value from constructor object.
183  
184 =cut
185 0 ▶sub setIGaze {
Subroutine setIGaze: not called CC=2 SCAR=17.9
Pod undocumented
186 0 my ($self, $IGaze) = @_;
187 0 ▶ $self->{_IGaze} = $IGaze if defined ($IGaze);
Branch: 1 branch
BranchTrueFalseTotal
if defined $IGaze 0 0 0
188 0 return $self->{_IGaze};
189 }
190  
191  
192 =head2 getICal6261()
193  
194 Get the value from constructor object.
195  
196 =cut
197  
198 0 ▶sub getICal6261 {
Subroutine getICal6261: not called CC=2 SCAR=17.9
Pod documented
199 0 my $self = shift;
200 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
201 0 croak "Should call method with an object";
202 }
203 0 return $self->{_ICal6261};
204 }
205 =head2 setICal6261($Int)
206  
207 Set the value from constructor object.
208  
209 =cut
210 0 ▶sub setICal6261 {
Subroutine setICal6261: not called CC=2 SCAR=17.9
Pod undocumented
211 0 my ($self, $ICal6261) = @_;
212 0 ▶ $self->{_ICal6261} = $ICal6261 if defined ($ICal6261);
Branch: 1 branch
BranchTrueFalseTotal
if defined $ICal6261 0 0 0
213 0 return $self->{ICal6261};
214 }
215  
216 =head2 getICal6262()
217  
218 Get the value from object.
219  
220 =cut
221  
222 0 ▶sub getICal6262 {
Subroutine getICal6262: not called CC=2 SCAR=17.9
Pod documented
223 0 my $self = shift;
224 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
225 0 croak "Should call method with an object";
226 }
227 0 return $self->{_ICal6262};
228 }
229 =head2 setICal6262($Int)
230  
231 Set the value from object.
232  
233 =cut
234 0 ▶sub setICal6262 {
Subroutine setICal6262: not called CC=2 SCAR=17.9
Pod undocumented
235 0 my ($self, $ICal6262) = @_;
236 0 ▶ $self->{_ICal6262} = $ICal6262 if defined ($ICal6262);
Branch: 1 branch
BranchTrueFalseTotal
if defined $ICal6262 0 0 0
237 0 return $self->{ICal6262};
238 }
239  
240 =head2 getICal6263
241  
242 Get the value from object.
243  
244 =cut
245  
246 0 ▶sub getICal6263 {
Subroutine getICal6263: not called CC=2 SCAR=17.9
Pod documented
247 0 my $self = shift;
248 0 ▶ unless (ref $self) {
Branch: 1 branch
BranchTrueFalseTotal
unless (ref $self) 0 0 0
249 0 croak "Should call method with an object";
250 }
251 0 return $self->{_ICal6263};
252 }
253 =head2 setICal6263($Int)
254  
255 Set the value fron object.
256  
257 =cut
258 0 ▶sub setICal6263 {
Subroutine setICal6263: not called CC=2 SCAR=17.9
Pod undocumented
259 0 my ($self, $ICal6263) = @_;
260 0 ▶ $self->{_ICal6263} = $ICal6263 if defined ($ICal6263);
Branch: 1 branch
BranchTrueFalseTotal
if defined $ICal6263 0 0 0
261 0 return $self->{ICal6263};
262 }
263 =head2 _run()
264  
265 This method run the code from this file.
266  
267 =cut
268 0 ▶sub _run {
Subroutine _run: not called CC=1 SCAR=6.9
269 0 my $ind = new Indexuri::Apartament (100, 200,300, 400, 500, 600, 700,800);
270 0 say $ind->getICal6261;
271 0 say $ind->getICal6262;
272 0 say $ind->getICal6263;
273 0 say $ind->getICal6261;
274 0 say $ind->getIApaBucRece;
275 0 say $ind->getIApaBucCalda;
276 0 say $ind->getIApaBaiRece;
277 0 say $ind->getIApaBaiCalda;
278 0 say "GAZE: ", $ind->getIGaze;
279 }
280 =head1 AUTHOR
281  
282 Mihai Cornel, C<< <mhcrnl at gmail.com> >>
283  
284 =head1 BUGS
285  
286 Please report any bugs or feature requests to C<bug-indexuri-apartament at rt.cpan.org>, or through
287 the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Indexuri-Apartament>. I will be notified, and then you'll
288 automatically be notified of progress on your bug as I make changes.
289  
290  
291  
292  
293 =head1 SUPPORT
294  
295 You can find documentation for this module with the perldoc command.
296  
297 perldoc Indexuri::Apartament
298  
299  
300 You can also look for information at:
301  
302 =over 4
303  
304 =item * RT: CPAN's request tracker (report bugs here)
305  
306 L<http://rt.cpan.org/NoAuth/Bugs.html?Dist=Indexuri-Apartament>
307  
308 =item * AnnoCPAN: Annotated CPAN documentation
309  
310 L<http://annocpan.org/dist/Indexuri-Apartament>
311  
312 =item * CPAN Ratings
313  
314 L<http://cpanratings.perl.org/d/Indexuri-Apartament>
315  
316 =item * Search CPAN
317  
318 L<http://search.cpan.org/dist/Indexuri-Apartament/>
319  
320 =back
321  
322  
323 =head1 ACKNOWLEDGEMENTS
324  
325  
326 =head1 LICENSE AND COPYRIGHT
327  
328 Copyright 2015 Mihai Cornel.
329  
330 This program is free software; you can redistribute it and/or modify it
331 under the terms of the the Artistic License (2.0). You may obtain a
332 copy of the full license at:
333  
334 L<http://www.perlfoundation.org/artistic_license_2_0>
335  
336 Any use, modification, and distribution of the Standard or Modified
337 Versions is governed by this Artistic License. By using, modifying or
338 distributing the Package, you accept this license. Do not use, modify,
339 or distribute the Package, if you do not accept this license.
340  
341 If your Modified Version has been derived from a Modified Version made
342 by someone other than you, you are nevertheless required to ensure that
343 your Modified Version complies with the requirements of this license.
344  
345 This license does not grant you the right to use any trademark, service
346 mark, tradename, or logo of the Copyright Holder.
347  
348 This license includes the non-exclusive, worldwide, free-of-charge
349 patent license to make, have made, use, offer to sell, sell, import and
350 otherwise transfer the Package with respect to any patent claims
351 licensable by the Copyright Holder that are necessarily infringed by the
352 Package. If you institute patent litigation (including a cross-claim or
353 counterclaim) against any party alleging that the Package constitutes
354 direct or contributory patent infringement, then this Artistic License
355 to you shall terminate on the date that such litigation is filed.
356  
357 Disclaimer of Warranty: THE PACKAGE IS PROVIDED BY THE COPYRIGHT HOLDER
358 AND CONTRIBUTORS "AS IS' AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES.
359 THE IMPLIED WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR
360 PURPOSE, OR NON-INFRINGEMENT ARE DISCLAIMED TO THE EXTENT PERMITTED BY
361 YOUR LOCAL LAW. UNLESS REQUIRED BY LAW, NO COPYRIGHT HOLDER OR
362 CONTRIBUTOR WILL BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, OR
363 CONSEQUENTIAL DAMAGES ARISING IN ANY WAY OUT OF THE USE OF THE PACKAGE,
364 EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
365  
366  
367 =cut
368  
369 2 1; # End of Indexuri::Apartament
↑ Summary