line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TAP::DOM::DocumentData; |
2
|
|
|
|
|
|
|
our $AUTHORITY = 'cpan:SCHWIGON'; |
3
|
|
|
|
|
|
|
# ABSTRACT: Accessors for key/value document data |
4
|
|
|
|
|
|
|
$TAP::DOM::DocumentData::VERSION = '0.95'; |
5
|
19
|
|
|
19
|
|
261
|
use 5.006; |
|
19
|
|
|
|
|
50
|
|
6
|
19
|
|
|
19
|
|
79
|
use strict; |
|
19
|
|
|
|
|
29
|
|
|
19
|
|
|
|
|
297
|
|
7
|
19
|
|
|
19
|
|
64
|
use warnings; |
|
19
|
|
|
|
|
32
|
|
|
19
|
|
|
|
|
2189
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
64
|
|
|
64
|
1
|
114
|
my $class = shift; |
11
|
64
|
|
|
|
|
210
|
return bless { @_ }, $class; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub set { |
15
|
2
|
|
|
2
|
1
|
5
|
my ($self, $key, $value) = @_; |
16
|
2
|
|
|
|
|
5
|
$self->{$key} = $value; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub get { |
20
|
17
|
|
|
17
|
1
|
17532
|
my ($self, $key) = @_; |
21
|
17
|
|
|
|
|
63
|
return $self->{$key}; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |