| 1 | package Wiktionary::Parser::Section::Translations::WordSense::Lexeme; | ||||||||||||
| 2 | |||||||||||||
| 3 | 442 | ▶ | sub new { | ||||||||||
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 4 | 442 | my $class = shift; | |||||||||||
| 5 | 442 | my %args = @_; | |||||||||||
| 6 | 442 | my $self = bless \%args, $class; | |||||||||||
| 7 | 442 | return $self; | |||||||||||
| 8 | } | ||||||||||||
| 9 | |||||||||||||
| 10 | |||||||||||||
| 11 | 412 | ▶ | sub add_translations { | ||||||||||
|
Subroutine
add_translations: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 12 | 412 | my $self = shift; | |||||||||||
| 13 | 412 | my @words = @_; | |||||||||||
| 14 | 412 | push @{$self->{translations}}, @words; | |||||||||||
| 15 | } | ||||||||||||
| 16 | |||||||||||||
| 17 | 13 | ▶ | sub add_qualifiers { | ||||||||||
|
Subroutine
add_qualifiers: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 18 | 13 | my $self = shift; | |||||||||||
| 19 | 13 | my @words = @_; | |||||||||||
| 20 | 13 | push @{$self->{qualifiers}}, @words; | |||||||||||
| 21 | } | ||||||||||||
| 22 | |||||||||||||
| 23 | 133 | ▶ | sub set_gender { | ||||||||||
|
Subroutine
set_gender: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 24 | 133 | my $self = shift; | |||||||||||
| 25 | 133 | my $gender = shift; | |||||||||||
| 26 | 133 | $self->{gender} = $gender; | |||||||||||
| 27 | } | ||||||||||||
| 28 | |||||||||||||
| 29 | 2 | ▶ | sub set_number { | ||||||||||
|
Subroutine
set_number: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 30 | 2 | my $self = shift; | |||||||||||
| 31 | 2 | my $number = shift; | |||||||||||
| 32 | 2 | $self->{number} = $number; | |||||||||||
| 33 | } | ||||||||||||
| 34 | |||||||||||||
| 35 | 108 | ▶ | sub set_transliteration { | ||||||||||
|
Subroutine
set_transliteration: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 36 | 108 | my $self = shift; | |||||||||||
| 37 | 108 | my $transliteration = shift; | |||||||||||
| 38 | 108 | $self->{transliteration} = $transliteration; | |||||||||||
| 39 | } | ||||||||||||
| 40 | |||||||||||||
| 41 | 15 | ▶ | sub set_alternate { | ||||||||||
|
Subroutine
set_alternate: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 42 | 15 | my $self = shift; | |||||||||||
| 43 | 15 | my $alternate = shift; | |||||||||||
| 44 | 15 | $self->{alternate} = $alternate; | |||||||||||
| 45 | } | ||||||||||||
| 46 | |||||||||||||
| 47 | 327 | ▶ | sub set_language_code { | ||||||||||
|
Subroutine
set_language_code: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 48 | 327 | my $self = shift; | |||||||||||
| 49 | 327 | my $language_code = shift; | |||||||||||
| 50 | 327 | $self->{language_code} = $language_code; | |||||||||||
| 51 | } | ||||||||||||
| 52 | 310 | ▶ | sub set_language_name { | ||||||||||
|
Subroutine
set_language_name: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 53 | 310 | my $self = shift; | |||||||||||
| 54 | 310 | my $language_name = shift; | |||||||||||
| 55 | 310 | $self->{language_name} = $language_name; | |||||||||||
| 56 | } | ||||||||||||
| 57 | |||||||||||||
| 58 | |||||||||||||
| 59 | 37 | ▶ | sub get_translations { | ||||||||||
|
Subroutine
get_translations: called CC=2 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 60 | 37 | my $self = shift; | |||||||||||
| 61 | 37 | ▶ | return @{$self->{translations} || []}; | ||||||||||
|
Condition100%2/2
$self->{'translations'} || []
MC/DC100%1/1
$self->{'translations'} || []
$self->{'translations'}
Truth table100%2/2
A
A= $self->{'translations'}
| |||||||||||||
| 62 | } | ||||||||||||
| 63 | |||||||||||||
| 64 | 37 | ▶ | sub get_language_code { | ||||||||||
|
Subroutine
get_language_code: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 65 | 37 | my $self = shift; | |||||||||||
| 66 | 37 | return $self->{language_code}; | |||||||||||
| 67 | } | ||||||||||||
| 68 | |||||||||||||
| 69 | 432 | ▶ | sub get_language_name { | ||||||||||
|
Subroutine
get_language_name: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 70 | 432 | my $self = shift; | |||||||||||
| 71 | 432 | return $self->{language_name}; | |||||||||||
| 72 | } | ||||||||||||
| 73 | |||||||||||||
| 74 | |||||||||||||
| 75 | 0 | ▶ | sub get_gender { | ||||||||||
|
Subroutine
get_gender: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 76 | 0 | my $self = shift; | |||||||||||
| 77 | 0 | return $self->{gender}; | |||||||||||
| 78 | } | ||||||||||||
| 79 | |||||||||||||
| 80 | 0 | ▶ | sub get_number { | ||||||||||
|
Subroutine
get_number: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 81 | 0 | my $self = shift; | |||||||||||
| 82 | 0 | return $self->{number}; | |||||||||||
| 83 | } | ||||||||||||
| 84 | |||||||||||||
| 85 | 47 | ▶ | sub get_transliteration { | ||||||||||
|
Subroutine
get_transliteration: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 86 | 47 | my $self = shift; | |||||||||||
| 87 | 47 | return $self->{transliteration}; | |||||||||||
| 88 | } | ||||||||||||
| 89 | |||||||||||||
| 90 | 37 | ▶ | sub get_alternate { | ||||||||||
|
Subroutine
get_alternate: called CC=1 SCAR=0.0
Pod
undocumented
| |||||||||||||
| 91 | 37 | my $self = shift; | |||||||||||
| 92 | 37 | return $self->{alternate}; | |||||||||||
| 93 | } | ||||||||||||
| 94 | |||||||||||||
| 95 | 0 | ▶ | sub get_qualifiers { | ||||||||||
|
Subroutine
get_qualifiers: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||
| 96 | 0 | my $self = shift; | |||||||||||
| 97 | 0 | return $self->{qualifiers}; | |||||||||||
| 98 | } | ||||||||||||
| 99 | |||||||||||||
| 100 | |||||||||||||
| 101 | |||||||||||||
| 102 | 3 | 1; | |||||||||||