| 1 | 1 | ▶ | use 5.20.0; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 4 | |||||||||||||||
| 5 | package DBIx::Class::Smooth::Helper::ResultSet::Shortcut::Join; | ||||||||||||||
| 6 | |||||||||||||||
| 7 | # ABSTRACT: Short intro | ||||||||||||||
| 8 | 1 | our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY | |||||||||||||
| 9 | 1 | our $VERSION = '0.0108'; | |||||||||||||
| 10 | |||||||||||||||
| 11 | 1 | ▶ | use parent 'DBIx::Class::Smooth::ResultSetBase'; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 12 | 1 | ▶ | use Carp qw/confess/; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 13 | 1 | ▶ | use experimental qw/signatures postderef/; | ||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||
| 14 | |||||||||||||||
| 15 | 0 | ▶ | sub join($self, @args) { | ||||||||||||
|
Subroutine
join: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||||||
| 16 | |||||||||||||||
| 17 | 0 | ▶ | if(!scalar @args) { | ||||||||||||
|
Branch: 2 branches
| |||||||||||||||
| 18 | 0 | return $self; | |||||||||||||
| 19 | } | ||||||||||||||
| 20 | elsif(scalar @args >= 2) { | ||||||||||||||
| 21 | 0 | die 'Too many args'; | |||||||||||||
| 22 | } | ||||||||||||||
| 23 | 0 | return $self->search(undef, { join => $args[0]}); | |||||||||||||
| 24 | } | ||||||||||||||
| 25 | |||||||||||||||
| 26 | 1 | 1; | |||||||||||||
| 27 | |||||||||||||||
| 28 | __END__ | ||||||||||||||