line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Neo4j::Bolt::Relationship; |
2
|
|
|
|
|
|
|
# ABSTRACT: Representation of Neo4j Relationship |
3
|
|
|
|
|
|
|
|
4
|
|
|
|
|
|
|
$Neo4j::Bolt::Relationship::VERSION = '0.4203'; |
5
|
|
|
|
|
|
|
|
6
|
6
|
|
|
6
|
|
33
|
use strict; |
|
6
|
|
|
|
|
11
|
|
|
6
|
|
|
|
|
157
|
|
7
|
6
|
|
|
6
|
|
26
|
use warnings; |
|
6
|
|
|
|
|
12
|
|
|
6
|
|
|
|
|
123
|
|
8
|
|
|
|
|
|
|
|
9
|
6
|
|
|
6
|
|
25
|
use parent 'Neo4j::Types::Relationship'; |
|
6
|
|
|
|
|
9
|
|
|
6
|
|
|
|
|
36
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub as_simple { |
12
|
2
|
|
|
2
|
1
|
4
|
my ($self) = @_; |
13
|
|
|
|
|
|
|
|
14
|
2
|
100
|
|
|
|
11
|
my %simple = defined $self->{properties} ? %{$self->{properties}} : (); |
|
1
|
|
|
|
|
4
|
|
15
|
2
|
|
|
|
|
4
|
$simple{_relationship} = $self->{id}; |
16
|
2
|
|
|
|
|
3
|
$simple{_start} = $self->{start}; |
17
|
2
|
|
|
|
|
3
|
$simple{_end} = $self->{end}; |
18
|
2
|
|
|
|
|
3
|
$simple{_type} = $self->{type}; |
19
|
2
|
|
|
|
|
9
|
return \%simple; |
20
|
|
|
|
|
|
|
} |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
1; |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
__END__ |