File Coverage

blib/lib/Number/Phone/NANP/BM.pm
Criterion Covered Total %
statement 10 10 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod 1 1 100.0
total 15 15 100.0


line stmt bran cond sub pod time code
1             package Number::Phone::NANP::BM;
2              
3 2     2   1053 use strict;
  2         6  
  2         69  
4              
5 2     2   14 use base 'Number::Phone::NANP';
  2         6  
  2         213  
6              
7 2     2   16 use Number::Phone::Country qw(noexport);
  2         8  
  2         21  
8              
9             our $VERSION = 1.1;
10              
11             my $cache = {};
12              
13             # NB this module doesn't register itself, the NANP module should be
14             # used and will load this one as necessary
15              
16             =head1 NAME
17              
18             Number::Phone::NANP::BM - BM-specific methods for Number::Phone
19              
20             =head1 DESCRIPTION
21              
22             This class implements BM-specific methods for Number::Phone. It is
23             a subclass of Number::Phone::NANP, which is in turn a subclass of
24             Number::Phone. Number::Phone::NANP sits in the middle because all
25             NANP countries can share some significant chunks of code. You should
26             never need to C this module directly, as C
27             will load it automatically when needed.
28              
29             =head1 SYNOPSIS
30              
31             use Number::Phone::NANP;
32            
33             my $phone_number = Number::Phone->new('+1 441 292 4595');
34             # returns a Number::Phone::NANP::BM object
35            
36             =head1 METHODS
37              
38             The following methods from Number::Phone are overridden:
39              
40             =over 4
41              
42             =item regulator
43              
44             Returns information about the national telecomms regulator.
45              
46             =cut
47              
48 1     1 1 20 sub regulator { 'Ministry of Telecommunications and E-Commerce, http://www.mtec.bm/'; }
49              
50             =back
51              
52             =head1 BUGS/FEEDBACK
53              
54             Please report bugs at L, including, if possible, a test case.
55              
56             I welcome feedback from users.
57              
58             =head1 LICENCE
59              
60             You may use, modify and distribute this software under the same terms as
61             perl itself.
62              
63             =head1 AUTHOR
64              
65             David Cantrell Edavid@cantrell.org.ukE
66              
67             Copyright 2023
68              
69             =cut
70              
71             1;