| 1 | package Mail::DMARC::Report::Aggregate::Record::Identifiers; | ||||||||||
| 2 | 16 | our $VERSION = '2.20261110'; | |||||||||
| 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 | 57 | ▶ | sub new( $class, @args ) { | ||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 11 | 57 | ▶ | croak "invalid arguments" if @args % 2; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 12 | 57 | my %args = @args; | |||||||||
| 13 | 57 | my $self = bless {}, $class; | |||||||||
| 14 | 57 | foreach my $key ( keys %args ) { | |||||||||
| 15 | 161 | $self->$key( $args{$key} ); | |||||||||
| 16 | } | ||||||||||
| 17 | 57 | return $self; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 127 | ▶ | sub envelope_to( $self, $value = undef ) { | ||||||||
|
Subroutine
envelope_to: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 21 | 127 | ▶ | return $self->{envelope_to} if @_ == 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 22 | 53 | return $self->{envelope_to} = $value; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 129 | ▶ | sub envelope_from( $self, $value = undef ) { | ||||||||
|
Subroutine
envelope_from: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 26 | 129 | ▶ | return $self->{envelope_from} if @_ == 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 27 | 55 | return $self->{envelope_from} = $value; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | 134 | ▶ | sub header_from( $self, $value = undef ) { | ||||||||
|
Subroutine
header_from: called CC=3 SCAR=11.0
Pod
undocumented
| |||||||||||
| 31 | 134 | ▶ | return $self->{header_from} if @_ == 1; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 32 | 58 | return $self->{header_from} = $value; | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 16 | 1; | |||||||||
| 36 | |||||||||||
| 37 | __END__ | ||||||||||