Schema/LocalBusiness.pm

filter: Statementstmt 100% 25 / 25 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Schema/Dentist.pm ↑ Summary Schema/MedicalBusiness.pm »
1 1 ▶use utf8;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package SemanticWeb::Schema::LocalBusiness;
4  
5 # ABSTRACT: A particular physical business or branch of an organization
6  
7 1 ▶use v5.14;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use Moo;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 extends qw/ SemanticWeb::Schema::Organization SemanticWeb::Schema::Place /;
11  
12  
13 1 ▶use MooX::JSON_LD 'LocalBusiness';
Subroutine BEGIN: called CC=1 SCAR=0.0
14 1 ▶use Ref::Util qw/ is_plain_hashref /;
Subroutine BEGIN: called CC=1 SCAR=0.0
15 # RECOMMEND PREREQ: Ref::Util::XS
16  
17 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
18  
19 1 our $VERSION = 'v23.0.0';
20  
21  
22 1 has branch_of => (
23 is => 'rw',
24 predicate => '_has_branch_of',
25 json_ld => 'branchOf',
26 );
27  
28  
29  
30 1 has currencies_accepted => (
31 is => 'rw',
32 predicate => '_has_currencies_accepted',
33 json_ld => 'currenciesAccepted',
34 );
35  
36  
37  
38 1 has opening_hours => (
39 is => 'rw',
40 predicate => '_has_opening_hours',
41 json_ld => 'openingHours',
42 );
43  
44  
45  
46 1 has payment_accepted => (
47 is => 'rw',
48 predicate => '_has_payment_accepted',
49 json_ld => 'paymentAccepted',
50 );
51  
52  
53  
54 1 has price_range => (
55 is => 'rw',
56 predicate => '_has_price_range',
57 json_ld => 'priceRange',
58 );
59  
60  
61  
62  
63  
64 1 1;
65  
66 __END__
« Schema/Dentist.pm ↑ Summary Schema/MedicalBusiness.pm »