lib/Mail/DMARC/Report/Aggregate/Record/Identifiers.pm

filter: Statementstmt 100% 32 / 32 Branchbran 87.5% 7 / 8 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 9 / 9 Podpod 0.0% 0 / 4 totaltotal 90.5% 48 / 53 CC 9 SCAR 8.8
CC
9
Cov
98%
new
3.0
envelope_to
3.0
envelope_from
3.0
CRAP 2.4
« blib/lib/Mail/DMARC/Report/Store/SQL/Grammars/PostgreSQL.pm ↑ Summary blib/lib/Mail/DMARC/Report/Store/SQL/Grammars/MySQL.pm »
1 package Mail::DMARC::Report::Aggregate::Record::Identifiers;
2 16 our $VERSION = '2.20260827';
3 16 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 16 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 16 ▶use feature 'signatures';
Subroutine BEGIN: called CC=1 SCAR=0.0
6 16 ▶no warnings 'experimental::args_array_with_signatures'; ## no critic (ProhibitNoWarnings)
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 16 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 55 ▶sub new( $class, @args ) {
Subroutine new: called CC=3 SCAR=11.0
Pod undocumented
11 55 ▶ croak "invalid arguments" if @args % 2;
Branch: 1 branch
BranchTrueFalseTotal
if @args % 2 0 55 55
12 55 my %args = @args;
13 55 my $self = bless {}, $class;
14 55 foreach my $key ( keys %args ) {
15 155 $self->$key( $args{$key} );
16 }
17 55 return $self;
18 }
19  
20 123 ▶sub envelope_to( $self, $value = undef ) {
Subroutine envelope_to: called CC=3 SCAR=11.0
Pod undocumented
21 123 ▶ return $self->{envelope_to} if @_ == 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 1 72 51 123
22 51 return $self->{envelope_to} = $value;
23 }
24  
25 125 ▶sub envelope_from( $self, $value = undef ) {
Subroutine envelope_from: called CC=3 SCAR=11.0
Pod undocumented
26 125 ▶ return $self->{envelope_from} if @_ == 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 1 72 53 125
27 53 return $self->{envelope_from} = $value;
28 }
29  
30 130 ▶sub header_from( $self, $value = undef ) {
Subroutine header_from: called CC=3 SCAR=11.0
Pod undocumented
31 130 ▶ return $self->{header_from} if @_ == 1;
Branch: 1 branch
BranchTrueFalseTotal
if @_ == 1 74 56 130
32 56 return $self->{header_from} = $value;
33 }
34  
35 16 1;
36  
37 __END__
38  
39 =pod
40  
41 =head1 NAME
42  
43 Mail::DMARC::Report::Aggregate::Record::Identifiers - identifiers section of a DMARC aggregate record
44  
45 =head1 VERSION
46  
47 version 2.20260827
48  
49 =head1 AUTHORS
50  
51 =over 4
52  
53 =item *
54  
55 Matt Simerson <msimerson@cpan.org>
56  
57 =item *
58  
59 Davide Migliavacca <shari@cpan.org>
60  
61 =item *
62  
63 Marc Bradshaw <marc@marcbradshaw.net>
64  
65 =back
66  
67 =head1 COPYRIGHT AND LICENSE
68  
69 This software is copyright (c) 2026 by Matt Simerson.
70  
71 This is free software; you can redistribute it and/or modify it under
72 the same terms as the Perl 5 programming language system itself.
73  
74 =cut
« blib/lib/Mail/DMARC/Report/Store/SQL/Grammars/PostgreSQL.pm ↑ Summary blib/lib/Mail/DMARC/Report/Store/SQL/Grammars/MySQL.pm »