| 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__ | ||