| 1 | 5 | ▶ | use v5.10.1; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 2 | 5 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 5 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | package Neo4j::Types::Node; | ||||||||||
| 6 | # ABSTRACT: Represents a Neo4j node / graph vertex | ||||||||||
| 7 | 5 | $Neo4j::Types::Node::VERSION = '2.00'; | |||||||||
| 8 | |||||||||||
| 9 | |||||||||||
| 10 | 6 | ▶ | sub get { | ||||||||
|
Subroutine
get: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 11 | 6 | my ($self, $property) = @_; | |||||||||
| 12 | |||||||||||
| 13 | 6 | return $self->{properties}->{$property}; | |||||||||
| 14 | } | ||||||||||
| 15 | |||||||||||
| 16 | |||||||||||
| 17 | 3 | ▶ | sub id { | ||||||||
|
Subroutine
id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 18 | 3 | my ($self) = @_; | |||||||||
| 19 | |||||||||||
| 20 | 3 | return $self->{id}; | |||||||||
| 21 | } | ||||||||||
| 22 | |||||||||||
| 23 | |||||||||||
| 24 | 4 | ▶ | sub labels { | ||||||||
|
Subroutine
labels: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 25 | 4 | my ($self) = @_; | |||||||||
| 26 | |||||||||||
| 27 | 4 | ▶ | return my @empty unless defined $self->{labels}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | 2 | return @{$self->{labels}}; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | |||||||||||
| 32 | 5 | ▶ | sub properties { | ||||||||
|
Subroutine
properties: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 33 | 5 | my ($self) = @_; | |||||||||
| 34 | |||||||||||
| 35 | 5 | ▶ | return {} unless defined $self->{properties}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 36 | 4 | return $self->{properties}; | |||||||||
| 37 | } | ||||||||||
| 38 | |||||||||||
| 39 | |||||||||||
| 40 | # Workaround for warnings::register_categories() being unavailable | ||||||||||
| 41 | # in Perl v5.12 and earlier | ||||||||||
| 42 | package # private | ||||||||||
| 43 | Neo4j::Types; | ||||||||||
| 44 | 5 | ▶ | use warnings::register; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 45 | |||||||||||
| 46 | |||||||||||
| 47 | 5 | 1; | |||||||||