| 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.0104'; | |||||||||||||
| 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 | ▶ | 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__ | ||||||||||||||
| 29 | |||||||||||||||
| 30 | =pod | ||||||||||||||
| 31 | |||||||||||||||
| 32 | =encoding UTF-8 | ||||||||||||||
| 33 | |||||||||||||||
| 34 | =head1 NAME | ||||||||||||||
| 35 | |||||||||||||||
| 36 | DBIx::Class::Smooth::Helper::ResultSet::Shortcut::Join - Short intro | ||||||||||||||
| 37 | |||||||||||||||
| 38 | =head1 VERSION | ||||||||||||||
| 39 | |||||||||||||||
| 40 | Version 0.0104, released 2020-08-30. | ||||||||||||||
| 41 | |||||||||||||||
| 42 | =head1 SOURCE | ||||||||||||||
| 43 | |||||||||||||||
| 44 | L<https://github.com/Csson/p5-DBIx-Class-Smooth> | ||||||||||||||
| 45 | |||||||||||||||
| 46 | =head1 HOMEPAGE | ||||||||||||||
| 47 | |||||||||||||||
| 48 | L<https://metacpan.org/release/DBIx-Class-Smooth> | ||||||||||||||
| 49 | |||||||||||||||
| 50 | =head1 AUTHOR | ||||||||||||||
| 51 | |||||||||||||||
| 52 | Erik Carlsson <info@code301.com> | ||||||||||||||
| 53 | |||||||||||||||
| 54 | =head1 COPYRIGHT AND LICENSE | ||||||||||||||
| 55 | |||||||||||||||
| 56 | This software is copyright (c) 2018 by Erik Carlsson. | ||||||||||||||
| 57 | |||||||||||||||
| 58 | This is free software; you can redistribute it and/or modify it under | ||||||||||||||
| 59 | the same terms as the Perl 5 programming language system itself. | ||||||||||||||
| 60 | |||||||||||||||
| 61 | =cut | ||||||||||||||