Neo4j/Types/Relationship.pm

filter: Statementstmt 100% 26 / 26 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 10 / 10 Podpod 100% 6 / 6 totaltotal 100% 44 / 44 CC 2 SCAR 1.7
CC
2
Cov
100%
properties
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Neo4j/Types/Node.pm ↑ Summary Neo4j/Types/Point.pm »
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::Relationship;
6 # ABSTRACT: Represents a Neo4j relationship / graph edge
7 5 $Neo4j::Types::Relationship::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 2 ▶sub type {
Subroutine type: called CC=1 SCAR=0.0
Pod documented
25 2 my ($self) = @_;
26
27 2 return $self->{type};
28 }
29  
30  
31 2 ▶sub start_id {
Subroutine start_id: called CC=1 SCAR=0.0
Pod documented
32 2 my ($self) = @_;
33
34 2 return $self->{start};
35 }
36  
37  
38 2 ▶sub end_id {
Subroutine end_id: called CC=1 SCAR=0.0
Pod documented
39 2 my ($self) = @_;
40
41 2 return $self->{end};
42 }
43  
44  
45 5 ▶sub properties {
Subroutine properties: called CC=2 SCAR=6.9
Pod documented
46 5 my ($self) = @_;
47
48 5 ▶ return {} unless defined $self->{properties};
Branch: 1 branch
BranchTrueFalseTotal
unless defined $self->{"properties"} 1 4 5
49 4 return $self->{properties};
50 }
51  
52  
53 # Workaround for warnings::register_categories() being unavailable
54 # in Perl v5.12 and earlier
55 package # private
56 Neo4j::Types;
57 5 ▶use warnings::register;
Subroutine BEGIN: called CC=1 SCAR=0.0
58  
59  
60 5 1;
« Neo4j/Types/Node.pm ↑ Summary Neo4j/Types/Point.pm »