| 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::Group; | ||||||||||||||||||||
| 9 | 10 | ▶ | use XML::Pastor::Schema::Object; | ||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||
| 10 | 10 | our @ISA = qw(XML::Pastor::Schema::Object); | |||||||||||||||||||
| 11 | |||||||||||||||||||||
| 12 | 10 | XML::Pastor::Schema::Group->mk_accessors(qw(elements elementInfo)); | |||||||||||||||||||
| 13 | |||||||||||||||||||||
| 14 | 2 | ▶ | sub new { | ||||||||||||||||||
|
Subroutine
new: called CC=5 SCAR=17.0
Pod
documented
| |||||||||||||||||||||
| 15 | 2 | my $proto = shift; | |||||||||||||||||||
| 16 | 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
| |||||||||||||||||||||
| 17 | 2 | my $self = {@_}; | |||||||||||||||||||
| 18 | |||||||||||||||||||||
| 19 | 2 | ▶ | unless ($self->{elements}) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 20 | 2 | $self->{elements} = []; | |||||||||||||||||||
| 21 | } | ||||||||||||||||||||
| 22 | 2 | ▶ | unless ($self->{elementInfo}) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 23 | 2 | $self->{elementInfo} = {}; | |||||||||||||||||||
| 24 | } | ||||||||||||||||||||
| 25 | 2 | ▶ | unless ($self->{contentType}) { | ||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||
| 26 | 2 | $self->{contentType} = "group"; | |||||||||||||||||||
| 27 | } | ||||||||||||||||||||
| 28 | |||||||||||||||||||||
| 29 | 2 | return bless $self, $class; | |||||||||||||||||||
| 30 | } | ||||||||||||||||||||
| 31 | |||||||||||||||||||||
| 32 | 10 | 1; | |||||||||||||||||||
| 33 | |||||||||||||||||||||
| 34 | __END__ | ||||||||||||||||||||