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.97'; |
5
|
19
|
|
|
19
|
|
230
|
use 5.006; |
|
19
|
|
|
|
|
47
|
|
6
|
19
|
|
|
19
|
|
68
|
use strict; |
|
19
|
|
|
|
|
28
|
|
|
19
|
|
|
|
|
259
|
|
7
|
19
|
|
|
19
|
|
62
|
use warnings; |
|
19
|
|
|
|
|
27
|
|
|
19
|
|
|
|
|
1855
|
|
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
sub new { |
10
|
64
|
|
|
64
|
1
|
94
|
my $class = shift; |
11
|
64
|
|
|
|
|
173
|
return bless { @_ }, $class; |
12
|
|
|
|
|
|
|
} |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub set { |
15
|
2
|
|
|
2
|
1
|
4
|
my ($self, $key, $value) = @_; |
16
|
2
|
|
|
|
|
3
|
$self->{$key} = $value; |
17
|
|
|
|
|
|
|
} |
18
|
|
|
|
|
|
|
|
19
|
|
|
|
|
|
|
sub get { |
20
|
17
|
|
|
17
|
1
|
13413
|
my ($self, $key) = @_; |
21
|
17
|
|
|
|
|
58
|
return $self->{$key}; |
22
|
|
|
|
|
|
|
} |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
1; |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__END__ |