FormHandler/Page.pm

filter: Statementstmt 93.7% 15 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 0.0% 0 / 1 totaltotal 85.7% 18 / 21 CC 1 SCAR 2.2
CC
1
Cov
94%
__ANON__
2.0
BEGIN
1.0
field
1.0
CRAP 1.2
« FormHandler/Widget/Wrapper/Fieldset.pm ↑ Summary FormHandler/Moose/Role.pm »
1 package HTML::FormHandler::Page;
2 # ABSTRACT: used in Wizard
3 1 $HTML::FormHandler::Page::VERSION = '0.410001';
4 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 with 'HTML::FormHandler::Pages';
6  
7 1 has 'name' => ( is => 'ro', isa => 'Str' );
8  
9 1 has 'form' => (
10 isa => 'HTML::FormHandler',
11 is => 'rw',
12 weak_ref => 1,
13 predicate => 'has_form',
14 );
15  
16 has 'fields' => (
17 traits => ['Array'],
18 isa => 'ArrayRef[Str]',
19 is => 'rw',
20 0 ▶ default => sub { [] },
Subroutine __ANON__: not called CC=1 SCAR=6.9
21 1 handles => {
22 all_fields => 'elements',
23 clear_fields => 'clear',
24 push_field => 'push',
25 num_fields => 'count',
26 has_fields => 'count',
27 }
28 );
29  
30 sub field {
31 2 ▶ my ( $self, $field_name ) = @_;
Subroutine field: called CC=1 SCAR=0.0
Pod undocumented
32  
33 2 return $self->form->field($field_name);
34 }
35  
36 1 __PACKAGE__->meta->make_immutable;
37 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
38 1 1;
39  
40 __END__
41  
42 =pod
43  
44 =encoding UTF-8
45  
46 =head1 NAME
47  
48 HTML::FormHandler::Page - used in Wizard
49  
50 =head1 VERSION
51  
52 version 0.410001
53  
54 =head1 AUTHOR
55  
56 FormHandler Contributors - see HTML::FormHandler
57  
58 =head1 COPYRIGHT AND LICENSE
59  
60 This software is copyright (c) 2017 by Gerda Shank.
61  
62 This is free software; you can redistribute it and/or modify it under
63 the same terms as the Perl 5 programming language system itself.
64  
65 =cut
« FormHandler/Widget/Wrapper/Fieldset.pm ↑ Summary FormHandler/Moose/Role.pm »