PONAPI/DAO/Request/RetrieveAll.pm

filter: Statementstmt 100% 17 / 17 Branchbran 100% 2 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 3 / 3 Podpod 0.0% 0 / 1 totaltotal 95.6% 22 / 23 CC 2 SCAR 4.1
CC
2
Cov
100%
execute
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.5
« PONAPI/DAO/Request/Delete.pm ↑ Summary PONAPI/DAO/Request/Role/HasPage.pm »
1 # ABSTRACT: DAO request - retrieve all
2 package PONAPI::DAO::Request::RetrieveAll;
3  
4 8 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 8 extends 'PONAPI::DAO::Request';
7  
8 8 with 'PONAPI::DAO::Request::Role::HasFields',
9 'PONAPI::DAO::Request::Role::HasFilter',
10 'PONAPI::DAO::Request::Role::HasInclude',
11 'PONAPI::DAO::Request::Role::HasPage',
12 'PONAPI::DAO::Request::Role::HasSort';
13  
14 sub execute {
15 31 ▶ my $self = shift;
Subroutine execute: called CC=2 SCAR=6.9
Pod undocumented
16 31 my $doc = $self->document;
17  
18 31 ▶ if ( $self->is_valid ) {
Branch: 1 branch
BranchTrueFalseTotal
if ($self->is_valid) 21 10 31
19 21 $doc->convert_to_collection;
20 21 $self->repository->retrieve_all( %{ $self } );
21 }
22  
23 28 return $self->response();
24 }
25  
26 8 __PACKAGE__->meta->make_immutable;
27 8 ▶no Moose; 1;
Subroutine BEGIN: called CC=1 SCAR=0.0
28  
29 __END__
30  
31 =pod
32  
33 =encoding UTF-8
34  
35 =head1 NAME
36  
37 PONAPI::DAO::Request::RetrieveAll - DAO request - retrieve all
38  
39 =head1 VERSION
40  
41 version 0.002012
42  
43 =head1 AUTHORS
44  
45 =over 4
46  
47 =item *
48  
49 Mickey Nasriachi <mickey@cpan.org>
50  
51 =item *
52  
53 Stevan Little <stevan@cpan.org>
54  
55 =item *
56  
57 Brian Fraser <hugmeir@cpan.org>
58  
59 =back
60  
61 =head1 COPYRIGHT AND LICENSE
62  
63 This software is copyright (c) 2016 by Mickey Nasriachi, Stevan Little, Brian Fraser.
64  
65 This is free software; you can redistribute it and/or modify it under
66 the same terms as the Perl 5 programming language system itself.
67  
68 =cut
« PONAPI/DAO/Request/Delete.pm ↑ Summary PONAPI/DAO/Request/Role/HasPage.pm »