Articulate/Role/Component.pm

filter: Statementstmt 81.8% 18 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 71.4% 10 / 14 Podpod 100% 11 / 11 totaltotal 82.9% 39 / 47 SCAR 0.1
CC
1
Cov
82%
authentication
2.0
framework
2.0
serialisation
2.0
CRAP 1.0
« Articulate/Serialisation/TemplateToolkit.pm ↑ Summary Articulate/Sortation/Numeric.pm »
1 package Articulate::Role::Component;
2 9 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
3 9 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 9 ▶use Moo::Role;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 =head1 NAME
7  
8 Articulate::Role::Component - access the core app and other compnents
9  
10 =cut
11  
12 =head1 DESCRIPTION
13  
14 This role provides accessors so that components can refer to each other. In order to do so they must when created or first called, have their C<app> attribute set.
15  
16 =head1 ATTRIBUTE
17  
18 =head3 app
19  
20 The Articulate app to which this component belongs.
21  
22 =head1 METHODS
23  
24 Each of these methods are simple read-only accessors which use the C<app> attribute to find the relevant component.
25  
26 =head3 augmentation
27  
28 Provides access to the app's augmentation component.
29  
30 =head3 authentication
31  
32 Provides access to the app's authentication component.
33  
34 =head3 authorisation
35  
36 Provides access to the app's authorisation component.
37  
38 =head3 construction
39  
40 Provides access to the app's construction component.
41  
42 =head3 enrichment
43  
44 Provides access to the app's enrichment component.
45  
46 =head3 framework
47  
48 Provides access to the app's framework component.
49  
50 =head3 navigation
51  
52 Provides access to the app's navigation component.
53  
54 =head3 serialisation
55  
56 Provides access to the app's serialisation component.
57  
58 =head3 service
59  
60 Provides access to the app's service component.
61  
62 =head3 storage
63  
64 Provides access to the app's storage component.
65  
66 =head3 validation
67  
68 Provides access to the app's validation component.
69  
70 =cut
71  
72 9 has app => (
73 is => 'rw',
74 weak_ref => 1,
75 );
76  
77 3 ▶sub augmentation { shift->app->components->{'augmentation'} }
Subroutine augmentation: called CC=1 SCAR=0.0
Pod documented
78 0 ▶sub authentication { shift->app->components->{'authentication'} }
Subroutine authentication: not called CC=1 SCAR=6.9
Pod documented
79 4 ▶sub authorisation { shift->app->components->{'authorisation'} }
Subroutine authorisation: called CC=1 SCAR=0.0
Pod documented
80 8 ▶sub construction { shift->app->components->{'construction'} }
Subroutine construction: called CC=1 SCAR=0.0
Pod documented
81 2 ▶sub enrichment { shift->app->components->{'enrichment'} }
Subroutine enrichment: called CC=1 SCAR=0.0
Pod documented
82 0 ▶sub framework { shift->app->components->{'framework'} }
Subroutine framework: not called CC=1 SCAR=6.9
Pod documented
83 101 ▶sub navigation { shift->app->components->{'navigation'} }
Subroutine navigation: called CC=1 SCAR=0.0
Pod documented
84 0 ▶sub serialisation { shift->app->components->{'serialisation'} }
Subroutine serialisation: not called CC=1 SCAR=6.9
Pod documented
85 0 ▶sub service { shift->app->components->{'service'} }
Subroutine service: not called CC=1 SCAR=6.9
Pod documented
86 10 ▶sub storage { shift->app->components->{'storage'} }
Subroutine storage: called CC=1 SCAR=0.0
Pod documented
87 2 ▶sub validation { shift->app->components->{'validation'} }
Subroutine validation: called CC=1 SCAR=0.0
Pod documented
88  
89 9 1;
« Articulate/Serialisation/TemplateToolkit.pm ↑ Summary Articulate/Sortation/Numeric.pm »