EPP/Frame/Command/Update.pm

filter: Statementstmt 57.1% 16 / 28 Branchbran 0.0% 0 / 6 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 62.5% 5 / 8 Podpod 0.0% 0 / 3 totaltotal 46.6% 21 / 45 CC 7 SCAR 20.9
CC
7
Cov
47%
add
12.0
rem
12.0
chg
12.0
CRAP 8.1
« EPP/Frame/Command/Create/Domain.pm ↑ Summary EPP/Frame/Command/Update/Host.pm »
1 package Net::EPP::Frame::Command::Update;
2 1 ▶use Net::EPP::Frame::Command::Update::Contact;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶use Net::EPP::Frame::Command::Update::Domain;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use Net::EPP::Frame::Command::Update::Host;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use base qw(Net::EPP::Frame::Command);
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =pod
9  
10 =head1 NAME
11  
12 Net::EPP::Frame::Command::Update - an instance of L<Net::EPP::Frame::Command>
13 for the EPP C<E<lt>updateE<gt>> command.
14  
15 =head1 OBJECT HIERARCHY
16  
17 L<XML::LibXML::Node>
18 +----L<XML::LibXML::Document>
19 +----L<Net::EPP::Frame>
20 +----L<Net::EPP::Frame::Command>
21 +----L<Net::EPP::Frame::Command::Update>
22  
23 =head1 METHODS
24  
25 =cut
26  
27 0 ▶sub add {
Subroutine add: not called CC=3 SCAR=24.8
Pod undocumented
28 0 my $self = shift;
29 0 foreach my $el ($self->getNode('update')->getChildNodes->shift->getChildNodes) {
30 0 my (undef, $name) = split(/:/, $el->localName, 2);
31 0 ▶ return $el if ($name eq 'add');
Branch: 1 branch
BranchTrueFalseTotal
if $name eq "add" 0 0 0
32 }
33 }
34  
35 0 ▶sub rem {
Subroutine rem: not called CC=3 SCAR=24.8
Pod undocumented
36 0 my $self = shift;
37 0 foreach my $el ($self->getNode('update')->getChildNodes->shift->getChildNodes) {
38 0 my (undef, $name) = split(/:/, $el->localName, 2);
39 0 ▶ return $el if ($name eq 'rem');
Branch: 1 branch
BranchTrueFalseTotal
if $name eq "rem" 0 0 0
40  
41 }
42 }
43  
44 0 ▶sub chg {
Subroutine chg: not called CC=3 SCAR=24.8
Pod undocumented
45 0 my $self = shift;
46 0 foreach my $el ($self->getNode('update')->getChildNodes->shift->getChildNodes) {
47 0 my (undef, $name) = split(/:/, $el->localName, 2);
48 0 ▶ return $el if ($name eq 'chg');
Branch: 1 branch
BranchTrueFalseTotal
if $name eq "chg" 0 0 0
49 }
50 }
51  
52 =pod
53  
54 my $el = $frame->add;
55 my $el = $frame->rem;
56 my $el = $frame->chg;
57  
58 These methods return the elements that should be used to contain the changes
59 to be made to the object (ie C<domain:add>, C<domain:rem>, C<domain:chg>).
60  
61 =cut
62  
63 1 1;
« EPP/Frame/Command/Create/Domain.pm ↑ Summary EPP/Frame/Command/Update/Host.pm »