| 1 | 10 | ▶ | use utf8; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 2 | 10 | ▶ | use strict; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 3 | 10 | ▶ | use warnings; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 4 | 10 | ▶ | no warnings qw(uninitialized); | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 5 | |||||||||||||||||||||
| 6 | |||||||||||||||||||||
| 7 | #================================================= | ||||||||||||||||||||
| 8 | package XML::Pastor::Schema::AttributeGroup; | ||||||||||||||||||||
| 9 | |||||||||||||||||||||
| 10 | 10 | ▶ | use XML::Pastor::Schema::Object; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 10 | our @ISA = qw(XML::Pastor::Schema::Object); | |||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 10 | XML::Pastor::Schema::AttributeGroup->mk_accessors(qw(attributes attributeInfo)); | |||||||||||||||||||
| 15 | |||||||||||||||||||||
| 16 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=5 SCAR=17.0
Pod
documented
| |||||||||||||||||||||
| 17 | 2 | my $proto = shift; | |||||||||||||||||||
| 18 | 2 | ▶ | my $class = ref($proto) || $proto; | ||||||||||||||||||
|
Condition33%1/3
ref $proto || $proto
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table33%1/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||
| 19 | 2 | my $self = {@_}; | |||||||||||||||||||
| 20 | |||||||||||||||||||||
| 21 | 2 | ▶ | unless ($self->{attributes}) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 22 | 2 | $self->{attributes} = []; | |||||||||||||||||||
| 23 | } | ||||||||||||||||||||
| 24 | 2 | ▶ | unless ($self->{attributeInfo}) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 25 | 2 | $self->{attributeInfo} = {}; | |||||||||||||||||||
| 26 | } | ||||||||||||||||||||
| 27 | 2 | ▶ | unless ($self->{contentType}) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 28 | 2 | $self->{contentType} = "attributeGroup"; | |||||||||||||||||||
| 29 | } | ||||||||||||||||||||
| 30 | |||||||||||||||||||||
| 31 | 2 | return bless $self, $class; | |||||||||||||||||||
| 32 | } | ||||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | 10 | 1; | |||||||||||||||||||
| 35 | |||||||||||||||||||||
| 36 | __END__ | ||||||||||||||||||||