| 1 | package WWW::PIDS::NextPredictedStopsDetailTable; | ||
| 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 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 7 | 0 | my ( $class, @stops ) = @_; | |
| 8 | 0 | my $self = bless {}, $class; | |
| 9 | 0 | @{ $self->{ stops } } = @stops; | |
| 10 | |||
| 11 | 0 | return $self | |
| 12 | } | ||
| 13 | |||
| 14 | 0 | ▶ | sub stops { |
|
Subroutine
stops: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 15 | 0 | return @{ $_[0]->{ stops } } | |
| 16 | } | ||
| 17 | |||
| 18 | 0 | ▶ | sub first { |
|
Subroutine
first: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 19 | 0 | return @{ $_[0]->{ stops } }[0] | |
| 20 | } | ||
| 21 | |||
| 22 | 0 | ▶ | sub last { |
|
Subroutine
last: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 23 | 0 | return @{ $_[0]->{ stops } }[-1] | |
| 24 | } | ||
| 25 | |||
| 26 | 0 | ▶ | sub count { |
|
Subroutine
count: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 27 | 0 | return scalar @{ $_[0]->{ stops } } | |
| 28 | } | ||
| 29 | |||
| 30 | 9 | 1; | |
| 31 | |||
| 32 | __END__ | ||