SRS/Handle/Create.pm

filter: Statementstmt 84.6% 11 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 88.8% 16 / 18 CC 1 SCAR 0.6
CC
1
Cov
85%
BEGIN
1.3
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« SRS/Domain/Create.pm ↑ Summary SRS/Handle/Update.pm »
1 package XML::SRS::Handle::Create;
2 1 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 $XML::SRS::Handle::Create::VERSION = '0.09';
4 }
5  
6 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use PRANG::Graph;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use XML::SRS::Types;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 0 ▶use XML::SRS::Server::List;
Subroutine BEGIN: called CC=1 SCAR=2.6
10  
11 # attributes
12 has_attr 'handle_id' =>
13 is => "ro",
14 isa => "Str",
15 xml_name => "HandleId",
16 predicate => "has_handle_id",
17 ;
18  
19 has_attr 'name' =>
20 is => "ro",
21 isa => "Str",
22 xml_name => "Name",
23 predicate => "has_name",
24 ;
25  
26 has_attr 'email' =>
27 is => "ro",
28 isa => "Str",
29 xml_name => "Email",
30 predicate => "has_email",
31 ;
32  
33 # elements
34 has_element 'address' =>
35 is => "ro",
36 isa => "XML::SRS::Contact::Address",
37 xml_nodeName => "PostalAddress",
38 predicate => "has_address",
39 coerce => 1,
40 ;
41  
42 has_element 'phone' =>
43 is => "ro",
44 isa => "XML::SRS::Contact::PSTN",
45 predicate => "has_phone",
46 xml_nodeName => "Phone",
47 coerce => 1,
48 ;
49  
50 has_element 'fax' =>
51 is => "ro",
52 isa => "XML::SRS::Contact::PSTN",
53 predicate => "has_fax",
54 xml_nodeName => "Fax",
55 coerce => 1,
56 ;
57  
58 has_element 'audit' =>
59 is => "rw",
60 isa => "XML::SRS::AuditDetails",
61 xml_nodeName => "AuditDetails",
62 predicate => "has_audit",
63 ;
64  
65 with 'XML::SRS::Audit';
66  
67 sub root_element {'HandleCreate'}
68 with 'XML::SRS::Action';
69  
70 1;
« SRS/Domain/Create.pm ↑ Summary SRS/Handle/Update.pm »