Object/Work.pm

filter: Statementstmt 100% 26 / 26 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod 0.0% 0 / 1 totaltotal 96.9% 32 / 33 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Object/Publisher.pm ↑ Summary Object/Kramerius.pm »
1 package MARC::Convert::Wikidata::Object::Work;
2  
3 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 3 ▶use Mo qw(build default is);
Subroutine BEGIN: called CC=1 SCAR=0.0
7 3 ▶use Mo::utils 0.21 qw(check_isa check_required);
Subroutine BEGIN: called CC=1 SCAR=0.0
8 3 ▶use Mo::utils::Array qw(check_array_object);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 3 our $VERSION = 0.16;
11  
12 3 has author => (
13 is => 'ro',
14 );
15  
16 3 has external_ids => (
17 default => [],
18 is => 'ro',
19 );
20  
21 3 has title => (
22 is => 'ro',
23 );
24  
25 3 has title_language => (
26 is => 'ro',
27 );
28  
29 2 ▶sub BUILD {
Subroutine BUILD: called CC=1 SCAR=0.0
Pod undocumented
30 2 my $self = shift;
31  
32 # Check 'author'.
33 2 check_isa($self, 'author', 'MARC::Convert::Wikidata::Object::People');
34  
35 # Check 'external_ids'.
36 2 check_array_object($self, 'external_ids', 'MARC::Convert::Wikidata::Object::ExternalId');
37  
38 # Check 'title'.
39 2 check_required($self, 'title');
40  
41 1 return;
42 }
43  
44 3 1;
45  
46 __END__
« Object/Publisher.pm ↑ Summary Object/Kramerius.pm »