Composite/Element.pm

filter: Statementstmt 100% 11 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Composite.pm ↑ Summary
1 =head1 NAME
2  
3 Class::Composite::Element - Element of a Collection::Container
4  
5 =head1 SYNOPSIS
6  
7 use Class::Composite::Element;
8 use Class::Composite::Container;
9 my $element = Class::Composite::Element->new();
10 my $collection = Class::Composite::Container->new();
11 $collection->addElement( $elem );
12  
13 =head1 DESCRIPTION
14  
15 Used to differenciate elements from containers within a collection
16  
17 =head1 INHERITANCE
18  
19 Class::Composite
20  
21 =head1 INTERFACE
22  
23 None
24  
25 =cut
26 package Class::Composite::Element;
27  
28 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 2 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
30  
31 2 ▶use base qw ( Class::Composite );
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 2 our $VERSION = 0.1;
34  
35  
36  
37 2 1;
38  
39 __END__
« Composite.pm ↑ Summary