| 1 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | |||||||||||
| 4 | package Neo4j::Types::Relationship; | ||||||||||
| 5 | # ABSTRACT: Describes a relationship from a Neo4j graph | ||||||||||
| 6 | 2 | $Neo4j::Types::Relationship::VERSION = '1.00'; | |||||||||
| 7 | |||||||||||
| 8 | |||||||||||
| 9 | sub get { | ||||||||||
| 10 | 6 | ▶ | my ($self, $property) = @_; | ||||||||
|
Subroutine
get: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 11 | |||||||||||
| 12 | 6 | ▶ | return unless defined $self->{properties}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | 5 | return $self->{properties}->{$property}; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | sub id { | ||||||||||
| 18 | 3 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 19 | |||||||||||
| 20 | 3 | return $self->{id}; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | |||||||||||
| 24 | sub type { | ||||||||||
| 25 | 2 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
type: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 26 | |||||||||||
| 27 | 2 | return $self->{type}; | |||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | |||||||||||
| 31 | sub start_id { | ||||||||||
| 32 | 2 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
start_id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 33 | |||||||||||
| 34 | 2 | return $self->{start}; | |||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | |||||||||||
| 38 | sub end_id { | ||||||||||
| 39 | 2 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
end_id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 40 | |||||||||||
| 41 | 2 | return $self->{end}; | |||||||||
| 42 | } | ||||||||||
| 43 | |||||||||||
| 44 | |||||||||||
| 45 | sub properties { | ||||||||||
| 46 | 3 | ▶ | my ($self) = @_; | ||||||||
|
Subroutine
properties: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 47 | |||||||||||
| 48 | 3 | ▶ | return {} unless defined $self->{properties}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 49 | 2 | return $self->{properties}; | |||||||||
| 50 | } | ||||||||||
| 51 | |||||||||||
| 52 | |||||||||||
| 53 | 2 | 1; | |||||||||
| 54 | |||||||||||
| 55 | __END__ | ||||||||||