blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Comment.pm

filter: Statementstmt 89.4% 17 / 19 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 76.9% 20 / 26 CC 1 SCAR 3.4
CC
1
Cov
89%
represents
2.0
parent_variable
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout/LineItem.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/CustomCollection/Collect.pm »
1  
2 #!/usr/bin/perl
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 # This class is generated from DBIx.pm. Do not modify.
6 package WWW::Shopify::Model::DBIx::Schema::Result::Model::Comment;
7 1 ▶use base qw/DBIx::Class::Core/;
Subroutine BEGIN: called CC=1 SCAR=0.0
8  
9 1 __PACKAGE__->load_components(qw/InflateColumn::DateTime/);
10  
11 1 __PACKAGE__->table('shopify_articles_comments');
12 1 __PACKAGE__->add_columns(
13 "body_html", { is_nullable => '1', data_type => 'TEXT' },
14 "updated_at", { data_type => 'DATETIME', is_nullable => '1' },
15 "email", { is_nullable => '1', data_type => 'VARCHAR(255)' },
16 "body", { data_type => 'TEXT', is_nullable => '1' },
17 "created_at", { is_nullable => '1', data_type => 'DATETIME' },
18 "id", { data_type => 'BIGINT', is_nullable => '0' },
19 "ip", { data_type => 'VARCHAR(255)', is_nullable => '1' },
20 "published_at", { is_nullable => '1', data_type => 'DATETIME' },
21 "status", { data_type => 'VARCHAR(255)', is_nullable => '1' },
22 "user_agent", { data_type => 'VARCHAR(255)', is_nullable => '1' },
23 "blog_id", { is_nullable => '1', data_type => 'BIGINT' },
24 "article_id", { data_type => 'BIGINT' },
25 "shop_id", { data_type => "BIGINT" }
26 );
27 1 __PACKAGE__->set_primary_key('id');
28  
29  
30  
31 1 __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id');
32  
33 1 __PACKAGE__->belongs_to(blog => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Blog', 'blog_id', { join_type => 'left' });
34 1 __PACKAGE__->belongs_to(article => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Article', 'article_id');
35 0 ▶sub represents { return 'WWW::Shopify::Model::Comment'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
36 0 ▶sub parent_variable { return 'article_id'; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
37  
38 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout/LineItem.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/CustomCollection/Collect.pm »