EPP/Contact/Create.pm

filter: Statementstmt 70.0% 7 / 10 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod n/a totaltotal 71.4% 10 / 14 CC 1 SCAR 2.8
CC
1
Cov
70%
root_element
2.0
BEGIN
1.3
BEGIN
1.0
CRAP 1.3
« EPP/Contact/Check/Response.pm ↑ Summary EPP/Contact/Info/Response.pm »
1  
2 package XML::EPP::Contact::Create;
3  
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 0 ▶sub root_element { 'create' }
Subroutine root_element: not called CC=1 SCAR=6.9
8  
9 with 'XML::EPP::Contact::RQ', 'XML::EPP::Contact::Node';
10  
11 has_element 'id' =>
12 is => 'ro',
13 isa => 'XML::EPP::Common::clIDType',
14 ;
15  
16 0 ▶use XML::EPP::Contact::PostalInfo;
Subroutine BEGIN: called CC=1 SCAR=2.6
17 has_element 'postal_info' =>
18 is => 'ro',
19 isa => 'ArrayRef[XML::EPP::Contact::PostalInfo]',
20 xml_nodeName => "postalInfo",
21 xml_min => 0,
22 xml_max => 2,
23 ;
24  
25 use XML::EPP::Contact::E164;
26 has_element 'voice' =>
27 is => 'ro',
28 isa => 'XML::EPP::Contact::E164',
29 xml_required => 0,
30 ;
31  
32 has_element 'fax' =>
33 is => 'ro',
34 isa => 'XML::EPP::Contact::E164',
35 xml_required => 0,
36 ;
37  
38 has_element 'email' =>
39 is => 'ro',
40 isa => 'XML::EPP::Common::minTokenType',
41 ;
42  
43 has_element 'auth_info' =>
44 is => 'ro',
45 isa => 'XML::EPP::Contact::AuthInfo',
46 xml_nodeName => 'authInfo',
47 required => 1,
48 ;
49  
50 has_element 'disclose' =>
51 is => 'ro',
52 isa => 'XML::EPP::Contact::Disclose',
53 xml_required => 0,
54 ;
55  
56 1;
57  
58 =head1 NAME
59  
60 ? - implement ?
61  
62 =head1 SYNOPSIS
63  
64 TODO
65  
66 =head1 DESCRIPTION
67  
68 ...
69  
70 =head2 XML Schema Definition
71  
72 <!--
73 Child elements of the <create> command.
74 -->
75 <complexType name="createType">
76 <sequence>
77 <element name="id" type="eppcom:clIDType"/>
78 <element name="postalInfo" type="contact:postalInfoType"
79 maxOccurs="2"/>
80 <element name="voice" type="contact:e164Type"
81 minOccurs="0"/>
82 <element name="fax" type="contact:e164Type"
83 minOccurs="0"/>
84 <element name="email" type="eppcom:minTokenType"/>
85 <element name="authInfo" type="contact:authInfoType"/>
86 <element name="disclose" type="contact:discloseType"
87 minOccurs="0"/>
88 </sequence>
89 </complexType>
90  
91 =cut
« EPP/Contact/Check/Response.pm ↑ Summary EPP/Contact/Info/Response.pm »