| 1 | =head1 NAME | ||||||||||
| 2 | |||||||||||
| 3 | OpenFrame::WebApp::Segment::Decline::UserInStore - decline if User found in store | ||||||||||
| 4 | |||||||||||
| 5 | =head1 SYNOPSIS | ||||||||||
| 6 | |||||||||||
| 7 | # see OpenFrame::WebApp::Segment::Decline | ||||||||||
| 8 | |||||||||||
| 9 | =cut | ||||||||||
| 10 | |||||||||||
| 11 | package OpenFrame::WebApp::Segment::Decline::UserInStore; | ||||||||||
| 12 | |||||||||||
| 13 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 14 | 1 | ▶ | use warnings::register; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 1 | ▶ | use Pipeline::Production; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | 1 | ▶ | use OpenFrame::WebApp::Error::Abstract; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 18 | |||||||||||
| 19 | 1 | our $VERSION = (split(/ /, '$Revision: 1.1 $'))[1]; | |||||||||
| 20 | |||||||||||
| 21 | 1 | ▶ | use base qw( OpenFrame::WebApp::Segment::Decline OpenFrame::WebApp::Segment::User ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 22 | |||||||||||
| 23 | 1 | ▶ | use constant message => 'declined: user in store'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 24 | |||||||||||
| 25 | 2 | ▶ | sub should_decline { | ||||||||
|
Subroutine
should_decline: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 26 | 2 | my $self = shift; | |||||||||
| 27 | 2 | ▶ | return $self->get_user_from_store ? 1 : 0; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 28 | } | ||||||||||
| 29 | |||||||||||
| 30 | |||||||||||
| 31 | 1 | 1; | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||