Mandel/Model/Field.pm

filter: Statementstmt 100% 7 / 7 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod 100% 3 / 3 totaltotal 100% 14 / 14 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
builder
1.0
name
1.0
CRAP 1.0
« Mandel/Relationship.pm ↑ Summary
1 package Mandel::Model::Field;
2 26 ▶use Mojo::Base -base;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 13 ▶sub builder { shift->{builder} }
Subroutine builder: called CC=1 SCAR=0.0
Pod documented
5 20 ▶sub name { shift->{name} }
Subroutine name: called CC=1 SCAR=0.0
Pod documented
6 5 ▶sub type_constraint { shift->{isa} }
Subroutine type_constraint: called CC=1 SCAR=0.0
Pod documented
7  
8 26 1;
9  
10 =encoding utf8
11  
12 =head1 NAME
13  
14 Mandel::Model::Field - Field meta object
15  
16 =head1 DESCRIPTION
17  
18 This class defines meta data for a L<field|Mandel::Model/field> object.
19  
20 =head1 ATTRIBUTES
21  
22 =head2 builder
23  
24 Returns a code-ref or method name for building the default value for this
25 field or undef unless a builder was not defined.
26  
27 =head2 name
28  
29 Returns the name.
30  
31 =head2 type_constraint
32  
33 Returns the type specified as "isa" in the constructor.
34  
35 =head1 AUTHOR
36  
37 Jan Henning Thorsen - C<jhthorsen@cpan.org>
38  
39 =cut
« Mandel/Relationship.pm ↑ Summary