line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Translate::Fluent::ResourceGroup::Context; |
2
|
|
|
|
|
|
|
|
3
|
6
|
|
|
6
|
|
42
|
use Moo; |
|
6
|
|
|
|
|
13
|
|
|
6
|
|
|
|
|
34
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
has context => ( |
6
|
|
|
|
|
|
|
is => 'ro', |
7
|
|
|
|
|
|
|
default => sub { {} }, |
8
|
|
|
|
|
|
|
); |
9
|
|
|
|
|
|
|
|
10
|
|
|
|
|
|
|
has resgroup => ( |
11
|
|
|
|
|
|
|
is => 'ro', |
12
|
|
|
|
|
|
|
); |
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub get_term { |
15
|
10
|
|
|
10
|
1
|
19
|
my ($self, $term_id) = @_; |
16
|
|
|
|
|
|
|
|
17
|
10
|
|
|
|
|
29
|
return $self->resgroup->get_term( $term_id, $self->context ); |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub get_message { |
21
|
3
|
|
|
3
|
1
|
7
|
my ($self, $message_id) = @_; |
22
|
|
|
|
|
|
|
|
23
|
3
|
|
|
|
|
10
|
return $self->resgroup->get_message( $message_id, $self->context ); |
24
|
|
|
|
|
|
|
} |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
1; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
__END__ |