| 1 | package OpenFrame::Request; | ||||||||||
| 2 | |||||||||||
| 3 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 2 | ▶ | use warnings::register; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 2 | ▶ | use OpenFrame::Object; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use base qw ( OpenFrame::Object ); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 2 | our $VERSION=3.05; | |||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | sub uri { | ||||||||
|
Subroutine
uri: called CC=3 SCAR=12.0
Pod
documented
| |||||||||||
| 12 | 1 | my $self = shift; | |||||||||
| 13 | |||||||||||
| 14 | 1 | ▶ | if (!ref($self)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 15 | 0 | $self->error("uri called as a class method"); | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 1 | my $uri = shift; | |||||||||
| 19 | 1 | ▶ | if (defined( $uri )) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 20 | 1 | $self->{ uri } = $uri; | |||||||||
| 21 | 1 | return $self; | |||||||||
| 22 | } else { | ||||||||||
| 23 | 0 | return $self->{ uri }; | |||||||||
| 24 | } | ||||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 1 | ▶ | sub arguments { | ||||||||
|
Subroutine
arguments: called CC=2 SCAR=7.2
Pod
documented
| |||||||||||
| 28 | 1 | my $self = shift; | |||||||||
| 29 | 1 | my $args = shift; | |||||||||
| 30 | 1 | ▶ | if (defined( $args )) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 31 | 1 | $self->{ args } = $args; | |||||||||
| 32 | 1 | return $self; | |||||||||
| 33 | } else { | ||||||||||
| 34 | 0 | return $self->{ args }; | |||||||||
| 35 | } | ||||||||||
| 36 | } | ||||||||||
| 37 | |||||||||||
| 38 | 0 | ▶ | sub cookies { | ||||||||
|
Subroutine
cookies: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 39 | 0 | my $self = shift; | |||||||||
| 40 | 0 | my $ctin = shift; | |||||||||
| 41 | 0 | ▶ | if (defined( $ctin )) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 42 | 0 | $self->{ ctin } = $ctin; | |||||||||
| 43 | 0 | return $ctin; | |||||||||
| 44 | } else { | ||||||||||
| 45 | 0 | return $self->{ ctin }; | |||||||||
| 46 | } | ||||||||||
| 47 | } | ||||||||||
| 48 | |||||||||||
| 49 | 2 | 1; | |||||||||
| 50 | |||||||||||
| 51 | __END__ | ||||||||||