| 1 | package WWW::PIDS::RouteNo; | ||||||||||
| 2 | |||||||||||
| 3 | 9 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 9 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 9 | ▶ | use overload ( '""' => \&__as_string ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 9 | 0 | my ( $class, $p ) = @_; | |||||||||
| 10 | 0 | my $self = bless {}, $class; | |||||||||
| 11 | |||||||||||
| 12 | defined $p->{ 'RouteNo' } | ||||||||||
| 13 | 0 | ▶ | ? $self->{ 'RouteNo' } = $p->{ 'RouteNo' } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | : die "Mandatory parameter RouteNo not provided in constructor" ; | ||||||||||
| 15 | |||||||||||
| 16 | 0 | return $self | |||||||||
| 17 | } | ||||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub __as_string { return "$_[0]->{RouteNo}" } | ||||||||
|
Subroutine
__as_string: not called CC=1 SCAR=6.9
| |||||||||||
| 20 | |||||||||||
| 21 | 9 | 1; | |||||||||
| 22 | |||||||||||
| 23 | __END__ | ||||||||||