lib/MojoMojo/Schema/Result/Link.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod n/a totaltotal 100% 19 / 19 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« lib/MojoMojo/Schema/Result/Journal.pm ↑ Summary lib/MojoMojo/Schema/Result/PathPermissions.pm »
1 package MojoMojo::Schema::Result::Link;
2  
3 40 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 40 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 40 ▶use parent 'MojoMojo::Schema::Base::Result';
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 MojoMojo::Schema::Result::Link - Links among pages
11  
12 =head1 ATTRIBUTES
13  
14 =head2 from_page
15  
16 L<MojoMojo::Schema::Result::Page> object being the source of a link
17  
18 =head2 to_page
19  
20 L<MojoMojo::Schema::Result::Page> object being the target of a link
21  
22 =cut
23  
24 40 __PACKAGE__->load_components( "Core" );
25 40 __PACKAGE__->table("link");
26 40 __PACKAGE__->add_columns(
27 "id",
28 { data_type => "INTEGER", is_nullable => 0, size => undef, is_auto_increment => 1 },
29 "from_page",
30 { data_type => "INTEGER", is_nullable => 0, size => undef },
31 "to_page",
32 { data_type => "INTEGER", is_nullable => 0, size => undef },
33 );
34 40 __PACKAGE__->set_primary_key("id");
35 40 __PACKAGE__->belongs_to( "from_page", "MojoMojo::Schema::Result::Page", { id => "from_page" } );
36 40 __PACKAGE__->belongs_to( "to_page", "MojoMojo::Schema::Result::Page", { id => "to_page" } );
37  
38 =head1 AUTHOR
39  
40 Marcus Ramberg <mramberg@cpan.org>
41  
42 =head1 LICENSE
43  
44 This library is free software. You can redistribute it and/or modify
45 it under the same terms as Perl itself.
46  
47 =cut
48  
49  
50 40 1;
« lib/MojoMojo/Schema/Result/Journal.pm ↑ Summary lib/MojoMojo/Schema/Result/PathPermissions.pm »