| 1 | package HTTP::Session::State::Test; | ||||||||||
| 2 | 10 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 10 | ▶ | use HTTP::Session::State::Base; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 10 | __PACKAGE__->mk_ro_accessors(qw/session_id/); | |||||||||
| 6 | |||||||||||
| 7 | 21 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=4 SCAR=14.9
Pod
documented
| |||||||||||
| 8 | 21 | my $class = shift; | |||||||||
| 9 | 0 | ▶ | my %args = ref($_[0]) ? %{$_[0]} : @_; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 10 | # check required parameters | ||||||||||
| 11 | 21 | for (qw/session_id/) { | |||||||||
| 12 | 21 | ▶ | Carp::croak "missing parameter $_" unless $args{$_}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 13 | } | ||||||||||
| 14 | # set default values | ||||||||||
| 15 | 21 | bless {%args}, $class; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 21 | ▶ | sub get_session_id { | ||||||||
|
Subroutine
get_session_id: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 19 | 21 | my $self = shift; | |||||||||
| 20 | 21 | return $self->session_id; | |||||||||
| 21 | } | ||||||||||
| 22 | 1 | ▶ | sub response_filter { } | ||||||||
|
Subroutine
response_filter: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 23 | |||||||||||
| 24 | 10 | 1; | |||||||||
| 25 | __END__ | ||||||||||