File Coverage

blib/lib/Lingua/YaTeA/Message.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod 3 3 100.0
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Lingua::YaTeA::Message;
2              
3 5     5   36 use strict;
  5         10  
  5         135  
4 5     5   41 use warnings;
  5         9  
  5         723  
5              
6             our $VERSION=$Lingua::YaTeA::VERSION;
7              
8             sub new
9             {
10 300     300 1 1001 my ($class,$name,$content,$language) = @_;
11 300         571 my $this = {};
12 300         473 bless ($this,$class);
13 300         599 $this->{NAME} = $name;
14 300         463 $this->{$language}= $content;
15 300         599 return $this;
16             }
17              
18              
19              
20             sub getContent
21             {
22 55     55 1 150 my ($this,$language) = @_;
23 55         1687 return $this->{$language};
24             }
25              
26             sub getName
27             {
28 300     300 1 453 my ($this) = @_;
29 300         6082 return $this->{NAME};
30             }
31              
32             1;
33              
34             __END__