Wikibase/Datatype/Sense.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.8% 31 / 32 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Wikibase/Datatype/Form.pm ↑ Summary Wikibase/Datatype/Sitelink.pm »
1 package Wikibase::Datatype::Sense;
2  
3 25 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 25 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 25 ▶use Mo qw(build default is);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 25 ▶use Mo::utils qw(check_number_of_items);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 25 ▶use Mo::utils::Array qw(check_array_object);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 25 our $VERSION = 0.40;
11  
12 25 has glosses => (
13 default => [],
14 is => 'ro',
15 );
16  
17 25 has id => (
18 is => 'ro',
19 );
20  
21 25 has statements => (
22 default => [],
23 is => 'ro',
24 );
25  
26 27 ▶sub BUILD {
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
27 27 my $self = shift;
28  
29 # Check glosses.
30 27 check_array_object($self, 'glosses', 'Wikibase::Datatype::Value::Monolingual');
31 25 check_number_of_items($self, 'glosses', 'language', 'Glosse', 'language');
32  
33 # Check statements.
34 24 check_array_object($self, 'statements', 'Wikibase::Datatype::Statement');
35  
36 22 return;
37 }
38  
39 25 1;
40  
41 __END__
« Wikibase/Datatype/Form.pm ↑ Summary Wikibase/Datatype/Sitelink.pm »