| 1 | # -*- Mode: Perl; indent-tabs-mode: nil; -*- | ||||||||||
| 2 | |||||||||||
| 3 | package Servlet::Util::Event; | ||||||||||
| 4 | |||||||||||
| 5 | 2 | ▶ | use fields qw(source); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 5 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=2 SCAR=6.9
Pod
documented
| |||||||||||
| 10 | 5 | my $self = shift; | |||||||||
| 11 | 5 | my $source = shift; | |||||||||
| 12 | |||||||||||
| 13 | 5 | ▶ | $self = fields::new($self) unless ref $self; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 14 | |||||||||||
| 15 | 5 | $self->{source} = $source; | |||||||||
| 16 | |||||||||||
| 17 | 5 | return $self; | |||||||||
| 18 | } | ||||||||||
| 19 | |||||||||||
| 20 | 9 | ▶ | sub getSource { | ||||||||
|
Subroutine
getSource: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 21 | 9 | my $self = shift; | |||||||||
| 22 | |||||||||||
| 23 | 9 | return $self->{source}; | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 2 | 1; | |||||||||
| 27 | __END__ | ||||||||||