Parser/Section/Pronunciation/Representation.pm

filter: Statementstmt 38.4% 5 / 13 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 20.0% 1 / 5 Podpod 0.0% 0 / 5 totaltotal 26.0% 6 / 23 CC 1 SCAR 5.9
CC
1
Cov
38%
get_representation
2.0
get_pronunciation
2.0
get_context
2.0
CRAP 1.8
« Parser/Section/DerivedTerms.pm ↑ Summary Parser/Section/Translations/WordSense.pm »
1 package Wiktionary::Parser::Section::Pronunciation::Representation;
2  
3 # keys:
4 # representation: IPA, SAMPA, prUS
5 # pronunciation: string representing pronunciation in the given representation format
6 # context: e.g. en(US), en(UK)
7 14 ▶sub new {
Subroutine new: called CC=1 SCAR=0.0
Pod undocumented
8 14 my $class = shift;
9 14 my %args = @_;
10 14 my $self = bless \%args, $class;
11 14 return $self;
12 }
13  
14 0 ▶sub get_representation {
Subroutine get_representation: not called CC=1 SCAR=6.9
Pod undocumented
15 0 my $self = shift;
16 0 return $self->{representation};
17 }
18  
19 0 ▶sub get_pronunciation {
Subroutine get_pronunciation: not called CC=1 SCAR=6.9
Pod undocumented
20 0 my $self = shift;
21 0 return $self->{pronunciation};
22 }
23  
24 0 ▶sub get_context {
Subroutine get_context: not called CC=1 SCAR=6.9
Pod undocumented
25 0 my $self = shift;
26 0 return $self->{context};
27 }
28  
29 0 ▶sub get_senses {
Subroutine get_senses: not called CC=1 SCAR=6.9
Pod undocumented
30 0 my $self = shift;
31 0 return $self->{senses};
32 }
33  
34 3 1;
« Parser/Section/DerivedTerms.pm ↑ Summary Parser/Section/Translations/WordSense.pm »