Freelancer/User.pm

filter: Statementstmt 40.7% 31 / 76 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 31.2% 10 / 32 Podpod 100% 14 / 14 totaltotal 45.0% 55 / 122 CC 1 SCAR 5.2
CC
1
Cov
41%
get_url
2.0
get_id
2.0
get_username
2.0
CRAP 1.7
« Freelancer/Project.pm ↑ Summary
1 package WWW::Freelancer::User;
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_url {
Subroutine get_url: not called CC=1 SCAR=6.9
Pod documented
7 0 my $self = shift;
8 0 return $self->{'url'};
9 }
10  
11 0 ▶sub get_id {
Subroutine get_id: not called CC=1 SCAR=6.9
Pod documented
12 0 my $self = shift;
13 0 return $self->{'id'};
14 }
15  
16 0 ▶sub get_username {
Subroutine get_username: not called CC=1 SCAR=6.9
Pod documented
17 0 my $self = shift;
18 0 return $self->{'username'};
19 }
20  
21 0 ▶sub get_logo_url {
Subroutine get_logo_url: not called CC=1 SCAR=6.9
Pod documented
22 0 my $self = shift;
23 0 return $self->{'logo_url'};
24 }
25  
26 0 ▶sub get_registration_unixtime {
Subroutine get_registration_unixtime: not called CC=1 SCAR=6.9
Pod documented
27 0 my $self = shift;
28 0 return $self->{'reg_unixtime'};
29 }
30  
31 0 ▶sub get_registration_date {
Subroutine get_registration_date: not called CC=1 SCAR=6.9
Pod documented
32 0 my $self = shift;
33 0 return $self->{'reg_date'};
34 }
35  
36 0 ▶sub get_company {
Subroutine get_company: not called CC=1 SCAR=6.9
Pod documented
37 0 my $self = shift;
38 0 return $self->{'company'};
39 }
40  
41 0 ▶sub is_gold {
Subroutine is_gold: not called CC=1 SCAR=6.9
Pod documented
42 0 my $self = shift;
43 0 return $self->{'gold'};
44 }
45  
46 0 ▶sub get_address {
Subroutine get_address: not called CC=1 SCAR=6.9
Pod documented
47 0 my $self = shift;
48 0 return bless $self->{'address'}, 'WWW::Freelancer::User::Address';
49 }
50  
51 0 ▶sub get_hourlyrate {
Subroutine get_hourlyrate: not called CC=1 SCAR=6.9
Pod documented
52 0 my $self = shift;
53 0 return $self->{'hourlyrate'};
54 }
55  
56 0 ▶sub get_rating {
Subroutine get_rating: not called CC=1 SCAR=6.9
Pod documented
57 0 my $self = shift;
58 0 return bless $self->{'rating'}, 'WWW::Freelancer::User::Rating';
59 }
60  
61 0 ▶sub get_provider_rating {
Subroutine get_provider_rating: not called CC=1 SCAR=6.9
Pod documented
62 0 my $self = shift;
63 0 return bless $self->{'provider_rating'},
64 'WWW::Freelancer::User::ProviderRating';
65 }
66  
67 0 ▶sub get_buyer_rating {
Subroutine get_buyer_rating: not called CC=1 SCAR=6.9
Pod documented
68 0 my $self = shift;
69 0 return bless $self->{'buyer_rating'}, 'WWW::Freelancer::User::BuyerRating';
70 }
71  
72 0 ▶sub get_jobs {
Subroutine get_jobs: not called CC=1 SCAR=6.9
Pod documented
73 0 my $self = shift;
74 0 return @{ $self->{'jobs'} };
75 }
76  
77 package WWW::Freelancer::User::Address;
78  
79 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
80 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
81  
82 0 ▶sub get_country {
Subroutine get_country: not called CC=1 SCAR=6.9
83 0 my $self = shift;
84 0 return $self->{'country'};
85 }
86  
87 0 ▶sub get_city {
Subroutine get_city: not called CC=1 SCAR=6.9
88 0 my $self = shift;
89 0 return $self->{'city'};
90 }
91  
92 package WWW::Freelancer::User::Rating;
93  
94 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
95 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
96  
97 0 ▶sub get_average {
Subroutine get_average: not called CC=1 SCAR=6.9
98 0 my $self = shift;
99 0 return $self->{'avg'};
100 }
101  
102 0 ▶sub get_count {
Subroutine get_count: not called CC=1 SCAR=6.9
103 0 my $self = shift;
104 0 return $self->{'count'};
105 }
106  
107 package WWW::Freelancer::User::ProviderRating;
108  
109 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
110 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
111  
112 0 ▶sub get_average {
Subroutine get_average: not called CC=1 SCAR=6.9
113 0 my $self = shift;
114 0 return $self->{'avg'};
115 }
116  
117 0 ▶sub get_count {
Subroutine get_count: not called CC=1 SCAR=6.9
118 0 my $self = shift;
119 0 return $self->{'count'};
120 }
121  
122 package WWW::Freelancer::User::BuyerRating;
123  
124 2 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
125 2 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
126  
127 0 ▶sub get_average {
Subroutine get_average: not called CC=1 SCAR=6.9
128 0 my $self = shift;
129 0 return $self->{'avg'};
130 }
131  
132 0 ▶sub get_count {
Subroutine get_count: not called CC=1 SCAR=6.9
133 0 my $self = shift;
134 0 return $self->{'count'};
135 }
136  
137 2 1;
138  
139 __END__
« Freelancer/Project.pm ↑ Summary