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

filter: Statementstmt 90.9% 20 / 22 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 79.3% 23 / 29 CC 1 SCAR 3.4
CC
1
Cov
91%
represents
2.0
parent_variable
2.0
BEGIN
1.0
CRAP 1.4
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Refund.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/GiftCard.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::CustomCollection;
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_custom_collections');
12 1 __PACKAGE__->add_columns(
13 "updated_at", { data_type => 'DATETIME', is_nullable => '1' },
14 "body_html", { data_type => 'VARCHAR(255)', is_nullable => '1' },
15 "id", { is_nullable => '0', data_type => 'BIGINT' },
16 "published_at", { data_type => 'DATETIME', is_nullable => '1' },
17 "title", { data_type => 'TEXT', is_nullable => '1' },
18 "published_scope", { data_type => 'VARCHAR(255)', is_nullable => '1' },
19 "published", { data_type => 'BOOL', is_nullable => '1' },
20 "template_suffix", { is_nullable => '1', data_type => 'VARCHAR(255)' },
21 "handle", { data_type => 'VARCHAR(255)', is_nullable => '1' },
22 "sort_order", { data_type => 'VARCHAR(255)', is_nullable => '1' },
23 "shop_id", { data_type => "BIGINT" }
24 );
25 1 __PACKAGE__->set_primary_key('id');
26  
27  
28  
29 1 __PACKAGE__->belongs_to(shop => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Shop', 'shop_id');
30  
31 1 __PACKAGE__->has_one(image => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomCollection::Image', 'custom_collection_id');
32 1 __PACKAGE__->has_many(metafields_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomCollectionMetafield', 'custom_collection_id');
33 1 __PACKAGE__->many_to_many(metafields => 'metafields_hasmany', 'metafield');
34 1 __PACKAGE__->has_many(collects_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomCollectionCollect', 'custom_collection_id');
35 1 __PACKAGE__->many_to_many(collects => 'collects_hasmany', 'collect');
36 0 ▶sub represents { return 'WWW::Shopify::Model::CustomCollection'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
37 0 ▶sub parent_variable { return undef; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
38  
39 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Refund.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/GiftCard.pm »