line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Travel::Routing::DE::EFA::Route; |
2
|
|
|
|
|
|
|
|
3
|
2
|
|
|
2
|
|
15
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
59
|
|
4
|
2
|
|
|
2
|
|
10
|
use warnings; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
43
|
|
5
|
2
|
|
|
2
|
|
35
|
use 5.010; |
|
2
|
|
|
|
|
7
|
|
6
|
|
|
|
|
|
|
|
7
|
2
|
|
|
2
|
|
10
|
use parent 'Class::Accessor'; |
|
2
|
|
|
|
|
3
|
|
|
2
|
|
|
|
|
10
|
|
8
|
|
|
|
|
|
|
|
9
|
2
|
|
|
2
|
|
5825
|
use Travel::Routing::DE::EFA::Route::Part; |
|
2
|
|
|
|
|
6
|
|
|
2
|
|
|
|
|
13
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
our $VERSION = '2.22'; |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
Travel::Routing::DE::EFA::Route->mk_ro_accessors( |
14
|
|
|
|
|
|
|
qw(duration ticket_text ticket_type fare_adult fare_child vehicle_time)); |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
sub new { |
17
|
4
|
|
|
4
|
1
|
13
|
my ( $obj, $info, @parts ) = @_; |
18
|
|
|
|
|
|
|
|
19
|
4
|
|
|
|
|
11
|
my $ref = $info; |
20
|
|
|
|
|
|
|
|
21
|
4
|
|
|
|
|
9
|
for my $part (@parts) { |
22
|
|
|
|
|
|
|
push( |
23
|
10
|
|
|
|
|
20
|
@{ $ref->{parts} }, |
24
|
10
|
|
|
|
|
17
|
Travel::Routing::DE::EFA::Route::Part->new( %{$part} ) |
|
10
|
|
|
|
|
64
|
|
25
|
|
|
|
|
|
|
); |
26
|
|
|
|
|
|
|
} |
27
|
|
|
|
|
|
|
|
28
|
4
|
|
|
|
|
10
|
return bless( $ref, $obj ); |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
sub parts { |
32
|
5
|
|
|
5
|
1
|
15546
|
my ($self) = @_; |
33
|
|
|
|
|
|
|
|
34
|
5
|
|
|
|
|
8
|
return @{ $self->{parts} }; |
|
5
|
|
|
|
|
32
|
|
35
|
|
|
|
|
|
|
} |
36
|
|
|
|
|
|
|
|
37
|
|
|
|
|
|
|
1; |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
__END__ |