line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
# POD documentation - main docs before the code |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
=head1 NAME |
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
GenOO::TranscriptCollection - Role for a collection of GenOO::Transcript objects |
6
|
|
|
|
|
|
|
|
7
|
|
|
|
|
|
|
=head1 SYNOPSIS |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
# This role defines the interface for collections of L<GenOO::Transcript> objects |
10
|
|
|
|
|
|
|
# Cannot be initialized |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
=head1 DESCRIPTION |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
This role defines the interface for collections of L<GenOO::Transcript> objects. |
15
|
|
|
|
|
|
|
All required attributes and subs must be present in classes that consume |
16
|
|
|
|
|
|
|
this role. |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=cut |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
# Let the code begin... |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
package GenOO::TranscriptCollection; |
23
|
|
|
|
|
|
|
$GenOO::TranscriptCollection::VERSION = '1.4.6'; |
24
|
1
|
|
|
1
|
|
3637
|
use Moose::Role; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
17
|
|
25
|
1
|
|
|
1
|
|
5380
|
use namespace::autoclean; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
12
|
|
26
|
1
|
|
|
1
|
|
91
|
use GenOO::TranscriptCollection::Factory; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
126
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
####################################################################### |
29
|
|
|
|
|
|
|
######################## Class Methods ######################## |
30
|
|
|
|
|
|
|
####################################################################### |
31
|
|
|
|
|
|
|
sub create_from { |
32
|
1
|
|
|
1
|
0
|
1905
|
my ($class, @attributes) = @_; |
33
|
1
|
|
|
|
|
16
|
return GenOO::TranscriptCollection::Factory->create(@attributes)->read_collection; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
1; |