blib/lib/HTML/Shakan/Field/Date.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 1 / 1 totaltotal 100% 24 / 24 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/HTML/Shakan/Field/Choice.pm ↑ Summary blib/lib/HTML/Shakan/Field/Input.pm »
1 package HTML::Shakan::Field::Date;
2 22 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 22 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 22 ▶use Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 22 extends 'HTML::Shakan::Field';
6  
7 22 has '+widget' => (
8 default => 'date'
9 );
10  
11 22 has years => (
12 is => 'ro',
13 isa => 'ArrayRef',
14 required => 0,
15 );
16  
17 sub BUILD {
18 4 ▶ my $self = shift;
Subroutine BUILD: called CC=1 SCAR=0.0
Pod documented
19 4 $self->add_constraint('DATE');
20 }
21  
22 22 ▶no Mouse;
Subroutine BEGIN: called CC=1 SCAR=0.0
23 22 __PACKAGE__->meta->make_immutable;
24 __END__
25  
26 =head1 NAME
27  
28 HTML::Shakan::Field::Date - date field
29  
30 =head1 DESCRIPTION
31  
32 date field specific class.
33  
34 =head1 SEE ALSO
35  
36 L<HTML::Shakan>
37  
« blib/lib/HTML/Shakan/Field/Choice.pm ↑ Summary blib/lib/HTML/Shakan/Field/Input.pm »