FormHandler/Field/Weekday.pm

filter: Statementstmt 100% 14 / 14 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 94.4% 17 / 18 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
build_options
1.0
BEGIN
1.0
CRAP 1.0
« FormHandler/Field/MonthName.pm ↑ Summary FormHandler/Field/Reset.pm »
1 package HTML::FormHandler::Field::Weekday;
2 # ABSTRACT: select list day of week strings
3 1 $HTML::FormHandler::Field::Weekday::VERSION = '0.410000';
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 extends 'HTML::FormHandler::Field::Select';
6  
7 sub build_options {
8 1 ▶ my $i = 0;
Subroutine build_options: called CC=1 SCAR=0.0
Pod undocumented
9 1 my @days = qw/
10 Sunday
11 Monday
12 Tuesday
13 Wednesday
14 Thursday
15 Friday
16 Saturday
17 /;
18 1 return [ map { { value => $i++, label => $_ } } @days ];
19 }
20  
21  
22 1 __PACKAGE__->meta->make_immutable;
23 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
24 1 1;
25  
26 __END__
27  
28 =pod
29  
30 =encoding UTF-8
31  
32 =head1 NAME
33  
34 HTML::FormHandler::Field::Weekday - select list day of week strings
35  
36 =head1 VERSION
37  
38 version 0.410000
39  
40 =head1 DESCRIPTION
41  
42 Creates an option list for the days of the week.
43  
44 =head1 AUTHOR
45  
46 FormHandler Contributors - see HTML::FormHandler
47  
48 =head1 COPYRIGHT AND LICENSE
49  
50 This software is copyright (c) 2017 by Gerda Shank.
51  
52 This is free software; you can redistribute it and/or modify it under
53 the same terms as the Perl 5 programming language system itself.
54  
55 =cut
« FormHandler/Field/MonthName.pm ↑ Summary FormHandler/Field/Reset.pm »