Freelancer/Project.pm

filter: Statementstmt 36.0% 31 / 86 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 27.0% 10 / 37 Podpod 100% 14 / 14 totaltotal 40.1% 55 / 137 CC 1 SCAR 5.5
CC
1
Cov
36%
get_id
2.0
get_name
2.0
get_url
2.0
CRAP 1.7
« Freelancer.pm ↑ Summary Freelancer/User.pm »
1 package WWW::Freelancer::Project;
2  
3 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 0 ▶sub get_id {
Subroutine get_id: not called CC=1 SCAR=6.9
Pod documented
7 0 my $self = shift;
8 0 return $self->{'id'};
9 }
10  
11 0 ▶sub get_name {
Subroutine get_name: not called CC=1 SCAR=6.9
Pod documented
12 0 my $self = shift;
13 0 return $self->{'name'};
14 }
15  
16 0 ▶sub get_url {
Subroutine get_url: not called CC=1 SCAR=6.9
Pod documented
17 0 my $self = shift;
18 0 return $self->{'url'};
19 }
20  
21 0 ▶sub get_start_unixtime {
Subroutine get_start_unixtime: not called CC=1 SCAR=6.9
Pod documented
22 0 my $self = shift;
23 0 return $self->{'start_unixtime'};
24 }
25  
26 0 ▶sub get_start_date {
Subroutine get_start_date: not called CC=1 SCAR=6.9
Pod documented
27 0 my $self = shift;
28 0 return $self->{'start_date'};
29 }
30  
31 0 ▶sub get_end_unixtime {
Subroutine get_end_unixtime: not called CC=1 SCAR=6.9
Pod documented
32 0 my $self = shift;
33 0 return $self->{'end_unixtime'};
34 }
35  
36 0 ▶sub get_end_date {
Subroutine get_end_date: not called CC=1 SCAR=6.9
Pod documented
37 0 my $self = shift;
38 0 return $self->{'end_date'};
39 }
40  
41 0 ▶sub get_buyer {
Subroutine get_buyer: not called CC=1 SCAR=6.9
Pod documented
42 0 my $self = shift;
43 0 return bless $self->{'buyer'}, 'WWW::Freelancer::Project::Buyer';
44 }
45  
46 0 ▶sub get_state {
Subroutine get_state: not called CC=1 SCAR=6.9
Pod documented
47 0 my $self = shift;
48 0 return $self->{'state'};
49 }
50  
51 0 ▶sub get_short_description {
Subroutine get_short_description: not called CC=1 SCAR=6.9
Pod documented
52 0 my $self = shift;
53 0 return $self->{'short_descr'};
54 }
55  
56 0 ▶sub get_options {
Subroutine get_options: not called CC=1 SCAR=6.9
Pod documented
57 0 my $self = shift;
58 0 return bless $self->{'options'}, 'WWW::Freelancer::Project::Options';
59 }
60  
61 0 ▶sub get_budget {
Subroutine get_budget: not called CC=1 SCAR=6.9
Pod documented
62 0 my $self = shift;
63 0 return bless $self->{'budget'}, 'WWW::Freelancer::Project::Budget';
64 }
65  
66 0 ▶sub get_jobs {
Subroutine get_jobs: not called CC=1 SCAR=6.9
Pod documented
67 0 my $self = shift;
68 0 return @{ $self->{'jobs'} };
69 }
70  
71 0 ▶sub get_bid_stats {
Subroutine get_bid_stats: not called CC=1 SCAR=6.9
Pod documented
72 0 my $self = shift;
73 0 return bless $self->{'bid_stats'}, 'WWW::Freelancer::Project::BidStats';
74 }
75  
76 package WWW::Freelancer::Project::Options;
77  
78 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
79 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
80  
81 0 ▶sub is_featured {
Subroutine is_featured: not called CC=1 SCAR=6.9
82 0 my $self = shift;
83 0 return $self->{'featured'};
84 }
85  
86 0 ▶sub is_nonpublic {
Subroutine is_nonpublic: not called CC=1 SCAR=6.9
87 0 my $self = shift;
88 0 return $self->{'nonpublic'};
89 }
90  
91 0 ▶sub is_trial {
Subroutine is_trial: not called CC=1 SCAR=6.9
92 0 my $self = shift;
93 0 return $self->{'trial'};
94 }
95  
96 0 ▶sub is_fulltime {
Subroutine is_fulltime: not called CC=1 SCAR=6.9
97 0 my $self = shift;
98 0 return $self->{'fulltime'};
99 }
100  
101 0 ▶sub is_for_gold_members {
Subroutine is_for_gold_members: not called CC=1 SCAR=6.9
102 0 my $self = shift;
103 0 return $self->{'for_gold_members'};
104 }
105  
106 0 ▶sub is_hidden_bids {
Subroutine is_hidden_bids: not called CC=1 SCAR=6.9
107 0 my $self = shift;
108 0 return $self->{'hidden_bids'};
109 }
110  
111 package WWW::Freelancer::Project::Buyer;
112  
113 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
114 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
115  
116 0 ▶sub get_url {
Subroutine get_url: not called CC=1 SCAR=6.9
117 0 my $self = shift;
118 0 return $self->{'url'};
119 }
120  
121 0 ▶sub get_id {
Subroutine get_id: not called CC=1 SCAR=6.9
122 0 my $self = shift;
123 0 return $self->{'id'};
124 }
125  
126 0 ▶sub get_username {
Subroutine get_username: not called CC=1 SCAR=6.9
127 0 my $self = shift;
128 0 return $self->{'username'};
129 }
130  
131 package WWW::Freelancer::Project::Budget;
132  
133 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
134 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
135  
136 0 ▶sub get_minimum {
Subroutine get_minimum: not called CC=1 SCAR=6.9
137 0 my $self = shift;
138 0 return $self->{'min'};
139 }
140  
141 0 ▶sub get_maximum {
Subroutine get_maximum: not called CC=1 SCAR=6.9
142 0 my $self = shift;
143 0 return $self->{'max'};
144 }
145  
146 package WWW::Freelancer::Project::BidStats;
147  
148 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
149 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
150  
151 0 ▶sub get_count {
Subroutine get_count: not called CC=1 SCAR=6.9
152 0 my $self = shift;
153 0 return $self->{'count'};
154 }
155  
156 0 ▶sub get_average {
Subroutine get_average: not called CC=1 SCAR=6.9
157 0 my $self = shift;
158 0 return $self->{'avg'};
159 }
160  
161 2 1;
162  
163 __END__
« Freelancer.pm ↑ Summary Freelancer/User.pm »