blib/lib/W3C/SOAP/WSDL/Document/PortType.pm

filter: Statementstmt 100% 31 / 31 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 8 / 8 Podpod n/a totaltotal 100% 39 / 39 CC 2 SCAR 2.0
CC
2
Cov
100%
_operations
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« blib/lib/W3C/SOAP/WSDL/Document/Policy.pm ↑ Summary blib/lib/W3C/SOAP/WSDL/Document/Service.pm »
1 package W3C::SOAP::WSDL::Document::PortType;
2  
3 # Created on: 2012-05-27 19:25:22
4 # Create by: Ivan Wills
5 # $Id$
6 # $Revision$, $HeadURL$, $Date$
7 # $Revision$, $Source$, $Date$
8  
9 5 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 5 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
12 5 ▶use Scalar::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 5 ▶use List::Util;
Subroutine BEGIN: called CC=1 SCAR=0.0
14 #use List::MoreUtils;
15 5 ▶use Data::Dumper qw/Dumper/;
Subroutine BEGIN: called CC=1 SCAR=0.0
16 5 ▶use English qw/ -no_match_vars /;
Subroutine BEGIN: called CC=1 SCAR=0.0
17  
18 5 extends 'W3C::SOAP::Document::Node';
19  
20 5 our $VERSION = 0.13;
21  
22 5 has operations => (
23 is => 'rw',
24 isa => 'ArrayRef[W3C::SOAP::WSDL::Document::Operation]',
25 builder => '_operations',
26 lazy => 1,
27 );
28  
29 sub _operations {
30 4 ▶ my ($self) = @_;
Subroutine _operations: called CC=2 SCAR=6.9
31 4 my @operations;
32 4 my @nodes = $self->document->xpc->findnodes('wsdl:operation', $self->node);
33  
34 4 for my $node (@nodes) {
35 6 push @operations, W3C::SOAP::WSDL::Document::Operation->new(
36 parent_node => $self,
37 node => $node,
38 );
39 }
40  
41 4 return \@operations;
42 }
43  
44 5 1;
45  
46 __END__
47  
48 =head1 NAME
49  
50 W3C::SOAP::WSDL::Document::PortType - Represents the port types in a WSDL document
51  
52 =head1 VERSION
53  
54 This documentation refers to W3C::SOAP::WSDL::Document::PortType version 0.13.
55  
56  
57 =head1 SYNOPSIS
58  
59 use W3C::SOAP::WSDL::Document::PortType;
60  
61 # Brief but working code example(s) here showing the most common usage(s)
62 # This section will be as far as many users bother reading, so make it as
63 # educational and exemplary as possible.
64  
65  
66 =head1 DESCRIPTION
67  
68 A C<W3C::SOAP::WSDL::Document::PortType> object represents the portType tags
69 in a WSDL document.
70  
71 =head1 SUBROUTINES/METHODS
72  
73 =over 4
74  
75 =back
76  
77 =head1 DIAGNOSTICS
78  
79 =head1 CONFIGURATION AND ENVIRONMENT
80  
81 =head1 DEPENDENCIES
82  
83 =head1 INCOMPATIBILITIES
84  
85 =head1 BUGS AND LIMITATIONS
86  
87 There are no known bugs in this module.
88  
89 Please report problems to Ivan Wills (ivan.wills@gmail.com).
90  
91 Patches are welcome.
92  
93 =head1 AUTHOR
94  
95 Ivan Wills - (ivan.wills@gmail.com)
96  
97 =head1 LICENSE AND COPYRIGHT
98  
99 Copyright (c) 2012 Ivan Wills (14 Mullion Close, Hornsby Heights, NSW Australia 2077).
100 All rights reserved.
101  
102 This module is free software; you can redistribute it and/or modify it under
103 the same terms as Perl itself. See L<perlartistic>. This program is
104 distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
105 without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
106 PARTICULAR PURPOSE.
107  
108 =cut
« blib/lib/W3C/SOAP/WSDL/Document/Policy.pm ↑ Summary blib/lib/W3C/SOAP/WSDL/Document/Service.pm »