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.5.2'; |
24
|
1
|
|
|
1
|
|
7826
|
use Moose::Role; |
|
1
|
|
|
|
|
11
|
|
|
1
|
|
|
|
|
47
|
|
25
|
1
|
|
|
1
|
|
8751
|
use namespace::autoclean; |
|
1
|
|
|
|
|
14
|
|
|
1
|
|
|
|
|
35
|
|
26
|
1
|
|
|
1
|
|
698
|
use GenOO::TranscriptCollection::Factory; |
|
1
|
|
|
|
|
9
|
|
|
1
|
|
|
|
|
118
|
|
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
####################################################################### |
29
|
|
|
|
|
|
|
######################## Class Methods ######################## |
30
|
|
|
|
|
|
|
####################################################################### |
31
|
|
|
|
|
|
|
sub create_from { |
32
|
1
|
|
|
1
|
0
|
3208
|
my ($class, @attributes) = @_; |
33
|
1
|
|
|
|
|
31
|
return GenOO::TranscriptCollection::Factory->create(@attributes)->read_collection; |
34
|
|
|
|
|
|
|
} |
35
|
|
|
|
|
|
|
1; |