blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Checkout/LineItem.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/Blog.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Comment.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::Checkout::LineItem;
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_checkouts_line_items');
12 1 __PACKAGE__->add_columns(
13 "checkout_id", { data_type => 'bigint' },
14 "quantity", { is_nullable => '1', data_type => 'INT' },
15 "grams", { is_nullable => '1', data_type => 'INT' },
16 "id", { is_nullable => '0', data_type => 'BIGINT' },
17 "vendor", { data_type => 'VARCHAR(255)', is_nullable => '1' },
18 "requires_shipping", { data_type => 'BOOL', is_nullable => '1' },
19 "title", { is_nullable => '1', data_type => 'VARCHAR(255)' },
20 "taxable", { data_type => 'BOOL', is_nullable => '1' },
21 "price", { data_type => 'DECIMAL(10,2)', is_nullable => '1' },
22 "variant_title", { data_type => 'VARCHAR(255)', is_nullable => '1' },
23 "sku", { is_nullable => '1', data_type => 'VARCHAR(255)' },
24 "fulfillment_service", { data_type => 'VARCHAR(255)', is_nullable => '1' },
25 "variant_id", { data_type => 'BIGINT', is_nullable => '1' },
26 "product_id", { is_nullable => '1', data_type => 'BIGINT' }
27 );
28 1 __PACKAGE__->set_primary_key('id');
29  
30  
31  
32  
33  
34 1 __PACKAGE__->belongs_to(variant => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product::Variant', 'variant_id');
35 1 __PACKAGE__->belongs_to(product => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Product', 'product_id');
36 1 __PACKAGE__->has_many(properties => 'WWW::Shopify::Model::DBIx::Schema::Result::Model::Order::LineItem::Property', 'line_item_id');
37 0 ▶sub represents { return 'WWW::Shopify::Model::Checkout::LineItem'; }
Subroutine represents: not called CC=1 SCAR=6.9
Pod undocumented
38 0 ▶sub parent_variable { return 'checkout_id'; }
Subroutine parent_variable: not called CC=1 SCAR=6.9
Pod undocumented
39  
40 1 1;
« blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Blog.pm ↑ Summary blib/lib/WWW/Shopify/Model/DBIx/Schema/Result/Model/Comment.pm »