NAB/Australian/DirectEntry/Report/FailedSummary.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod n/a totaltotal 100% 35 / 35 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« NAB/Australian/DirectEntry/Report/FailedRecord.pm ↑ Summary NAB/Australian/DirectEntry/Report/TrailerRecord.pm »
1 package Business::NAB::Australian::DirectEntry::Report::FailedSummary;
2 2 $Business::NAB::Australian::DirectEntry::Report::FailedSummary::VERSION = '0.11';
3 =head1 NAME
4  
5 Business::NAB::Australian::DirectEntry::Report::ValueSummary
6  
7 Extends L<Business::NAB::Australian::DirectEntry::Report::ValueSummary>
8  
9 =head1 SYNOPSIS
10  
11 =head1 DESCRIPTION
12  
13 Class for failed summary record in the Australian Direct Entry Report file
14  
15 =cut;
16  
17 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
19 2 ▶use feature qw/ signatures /;
Subroutine BEGIN: called CC=1 SCAR=0.0
20  
21 2 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
22 2 extends 'Business::NAB::Australian::DirectEntry::Report::ValueSummary';
23 2 ▶no warnings qw/ experimental::signatures /;
Subroutine BEGIN: called CC=1 SCAR=0.0
24  
25 2 ▶use Business::NAB::Types qw/
Subroutine BEGIN: called CC=1 SCAR=0.0
26 add_max_string_attribute
27 2 /;
28  
29 =head1 ATTRIBUTES
30  
31 All are Str types, required, except where stated. Extra attributes are
32 inherited from L<Business::NAB::Australian::DirectEntry::Report::ValueSummary>.
33  
34 =over
35  
36 =item failed_item_treatment_option
37  
38 =item text
39  
40 =back
41  
42 =cut
43  
44 6 ▶sub _record_type { '62' }
Subroutine _record_type: called CC=1 SCAR=0.0
45  
46 7 ▶sub _attributes ( $self ) {
Subroutine _attributes: called CC=1 SCAR=0.0
47  
48 return (
49 7 $self->SUPER::_attributes,
50 $self->_extra_attributes,
51 );
52 }
53  
54 9 ▶sub _extra_attributes ( $self ) {
Subroutine _extra_attributes: called CC=1 SCAR=0.0
55  
56 9 return qw/
57 failed_item_treatment_option
58 text
59 /;
60 }
61  
62 2 foreach my $str_attr (
63 'sub_trancode',
64 __PACKAGE__->_extra_attributes,
65 ) {
66 6 __PACKAGE__->add_max_string_attribute(
67 $str_attr,
68 is => 'ro',
69 required => 1,
70 );
71 }
72  
73 2 __PACKAGE__->meta->make_immutable;
« NAB/Australian/DirectEntry/Report/FailedRecord.pm ↑ Summary NAB/Australian/DirectEntry/Report/TrailerRecord.pm »