SOAP/MetaFieldValueWS.pm

filter: Statementstmt 71.4% 15 / 21 Branchbran 0.0% 0 / 4 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 66.6% 2 / 3 Podpod 0.0% 0 / 1 totaltotal 58.6% 17 / 29 CC 4 SCAR 26.1
CC
4
Cov
60%
soapify
20.0
BEGIN
1.0
BEGIN
1.0
CRAP 13.7
« SOAP/API.pm ↑ Summary SOAP/OrderLineWS.pm »
1 package jBilling::Client::SOAP::MetaFieldValueWS;
2 1 ▶ use 5.010;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 1 ▶ use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 our $VERSION = 0.02;
5 1 extends 'jBilling::Client::SOAP::Object';
6 1 has 'id', is => 'rw', isa => 'Str';
7 1 has 'fieldName', is => 'rw', isa => 'Str';
8 1 has 'stringValue', is => 'rw', isa => 'Str';
9 1 has 'displayOrder', is => 'rw', isa => 'Str';
10 1 has 'dataType', is => 'rw', isa => 'Str';
11 1 has 'mandatory', is => 'rw', isa => 'Str';
12 1 has 'disabled', is => 'rw', isa => 'Str';
13
14 0 ▶ sub soapify{
Subroutine soapify: not called CC=4 SCAR=30.0
Pod undocumented
15 0 my $self = shift;
16 0 my @ols;
17 my @ol;
18 0 foreach my $method ($self->getClassMethods){
19 0 ▶ push @ol, SOAP::Data->new(name => $method, value => $self->$method)
Branch: 1 branch
BranchTrueFalseTotal
if defined $self->$method 0 0 0
20 if (defined $self->$method );
21 }
22 0 push @ols, \SOAP::Data->value(@ol);
23 0 ▶ return SOAP::Data->name("metaFields" => @ols)
Branch: 1 branch
BranchTrueFalseTotal
if @ols 0 0 0
24 ->type("metaFields") if @ols;
25 }
26
27
28
29 1 1;
« SOAP/API.pm ↑ Summary SOAP/OrderLineWS.pm »