KiokuDB/TypeMap/Entry/Alias.pm

filter: Statementstmt 100% 9 / 9 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 2 / 2 Podpod n/a totaltotal 100% 11 / 11 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« KiokuDB/TypeMap/Entry.pm ↑ Summary KiokuDB/TypeMap/Entry/Compiled.pm »
1 #!/usr/bin/perl
2  
3 package KiokuDB::TypeMap::Entry::Alias;
4 28 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 28 ▶use namespace::clean -except => 'meta';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 28 has to => (
9 isa => "Str",
10 is => "ro",
11 required => 1,
12 );
13  
14 28 __PACKAGE__->meta->make_immutable;
15  
16 28 __PACKAGE__
17  
18 __END__
19  
20 =pod
21  
22 =head1 NAME
23  
24 KiokuDB::TypeMap::Entry::Alias - An alias in the typemap to another entry
25  
26 =head1 SYNOPSIS
27  
28 my $typemap = KiokuDB::TypeMap->new(
29 entries => {
30 'Some::Class' => KiokuDB::TypeMap::Entry::Alias->new(
31 to => "Some::Other::Class",
32 ),
33 'Some::Other::Class' => ...,
34 },
35 );
36  
37 =head1 DESCRIPTION
38  
39 This pseudo-entry directs the typemap resolution to re-resolve with the key in
40 the C<to> field.
« KiokuDB/TypeMap/Entry.pm ↑ Summary KiokuDB/TypeMap/Entry/Compiled.pm »