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

filter: Statementstmt 91.3% 21 / 23 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 60.0% 3 / 5 Podpod 0.0% 0 / 2 totaltotal 80.0% 24 / 30 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/GiftCard.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Customer.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::Product;
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_products');
12 1 __PACKAGE__->add_columns(
13 "created_at", { is_nullable => '1', data_type => 'DATETIME' },
14 "updated_at", { data_type => 'DATETIME', is_nullable => '1' },
15 "published_scope", { is_nullable => '1', data_type => 'VARCHAR(255)' },
16 "tags", { is_nullable => '1', data_type => 'VARCHAR(255)' },
17 "product_type", { data_type => 'VARCHAR(255)', is_nullable => '1' },
18 "vendor", { data_type => 'VARCHAR(255)', is_nullable => '1' },
19 "handle", { data_type => 'VARCHAR(255)', is_nullable => '1' },
20 "title", { is_nullable => '1', data_type => 'VARCHAR(255)' },
21 "template_suffix", { is_nullable => '1', data_type => 'VARCHAR(255)' },
22 "published_at", { is_nullable => '1', data_type => 'DATETIME' },
23 "body_html", { is_nullable => '1', data_type => 'TEXT' },
24 "id", { is_nullable => '0', 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__->has_many(options => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Option', 'product_id');
34 1 __PACKAGE__->has_many(images => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Image', 'product_id');
35 1 __PACKAGE__->has_many(variants => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Variant', 'product_id');
36 1 __PACKAGE__->has_many(metafields_hasmany => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::MetafieldProduct', 'product_id');
37 1 __PACKAGE__->many_to_many(metafields => 'metafields_hasmany', 'metafield');
38 0 ▶sub represents { return 'WWW::Shopify::Model::Product'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
39 0 ▶sub parent_variable { return undef; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
40 1 __PACKAGE__->has_many('collects', 'WWW::Shopify::Model::DBIx::Schema::Result::Model::CustomCollection::Collect', 'product_id');
41  
42 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/GiftCard.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Customer.pm »