lib/HTML/FormFu/Model.pm

filter: Statementstmt 74.0% 20 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 50.0% 5 / 10 Podpod 0.0% 0 / 5 totaltotal 59.5% 25 / 42 SCAR 0.2
CC
1
Cov
74%
default_values
2.0
update
2.0
create
2.0
CRAP 1.0
« lib/HTML/FormFu/Element/Textarea.pm ↑ Summary lib/HTML/FormFu/Element/Number.pm »
1 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2  
3 package HTML::FormFu::Model;
4 7 $HTML::FormFu::Model::VERSION = '2.06';
5 # ABSTRACT: base class for models
6  
7 7 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 7 ▶use MooseX::Attribute::Chained;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 7 with 'HTML::FormFu::Role::HasParent';
11  
12 7 ▶use HTML::FormFu::ObjectUtil qw( form parent );
Subroutine BEGIN: called CC=1 SCAR=0.0
13 7 ▶use Carp qw( croak );
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 7 has type => ( is => 'rw', traits => ['Chained'] );
16  
17 sub default_values {
18 0 ▶ croak "'default_values' method not implemented by Model class";
Subroutine default_values: not called CC=1 SCAR=6.9
Pod undocumented
19 }
20  
21 sub update {
22 0 ▶ croak "'update' method not implemented by Model class";
Subroutine update: not called CC=1 SCAR=6.9
Pod undocumented
23 }
24  
25 sub create {
26 0 ▶ croak "'create' method not implemented by Model class";
Subroutine create: not called CC=1 SCAR=6.9
Pod undocumented
27 }
28  
29 sub options_from_model {
30 0 ▶ croak "'options_from_model' method not implemented by Model class";
Subroutine options_from_model: not called CC=1 SCAR=6.9
Pod undocumented
31 }
32  
33 sub clone {
34 0 ▶ my ($self) = @_;
Subroutine clone: not called CC=1 SCAR=6.9
Pod undocumented
35  
36 0 my %new = %$self;
37  
38 0 return bless \%new, ref $self;
39 }
40  
41 7 __PACKAGE__->meta->make_immutable;
42  
43 7 1;
44  
45 __END__
46  
47 =pod
48  
49 =encoding UTF-8
50  
51 =head1 NAME
52  
53 HTML::FormFu::Model - base class for models
54  
55 =head1 VERSION
56  
57 version 2.06
58  
59 =head1 SEE ALSO
60  
61 L<HTML::FormFu::Model::DBIC>
62  
63 L<HTML::FormFu::Model::LDAP>
64  
65 =head1 AUTHOR
66  
67 Carl Franks, C<cfranks@cpan.org>
68  
69 =head1 LICENSE
70  
71 This library is free software, you can redistribute it and/or modify it under
72 the same terms as Perl itself.
73  
74 =head1 AUTHOR
75  
76 Carl Franks <cpan@fireartist.com>
77  
78 =head1 COPYRIGHT AND LICENSE
79  
80 This software is copyright (c) 2018 by Carl Franks.
81  
82 This is free software; you can redistribute it and/or modify it under
83 the same terms as the Perl 5 programming language system itself.
84  
85 =cut
« lib/HTML/FormFu/Element/Textarea.pm ↑ Summary lib/HTML/FormFu/Element/Number.pm »