| 1 | # | ||||||||||
| 2 | # $Id: DB.pm,v 008243d3e89a 2018/07/21 14:54:07 gomor $ | ||||||||||
| 3 | # | ||||||||||
| 4 | package Net::SinFP3::DB; | ||||||||||
| 5 | 2 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 2 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 2 | ▶ | use base qw(Class::Gomor::Array); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 2 | our @AS = qw( | |||||||||
| 10 | global | ||||||||||
| 11 | ); | ||||||||||
| 12 | 2 | __PACKAGE__->cgBuildIndices; | |||||||||
| 13 | 2 | __PACKAGE__->cgBuildAccessorsScalar(\@AS); | |||||||||
| 14 | |||||||||||
| 15 | 0 | ▶ | sub new { | ||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 16 | 0 | my $self = shift->SUPER::new( | |||||||||
| 17 | @_, | ||||||||||
| 18 | ); | ||||||||||
| 19 | |||||||||||
| 20 | 0 | ▶ | if (!defined($self->global)) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | die("[-] ".__PACKAGE__.": You must provide a global object\n"); | |||||||||
| 22 | } | ||||||||||
| 23 | |||||||||||
| 24 | 0 | return $self; | |||||||||
| 25 | } | ||||||||||
| 26 | |||||||||||
| 27 | 0 | ▶ | sub update { | ||||||||
|
Subroutine
update: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 28 | 0 | my $self = shift; | |||||||||
| 29 | 0 | return $self; | |||||||||
| 30 | } | ||||||||||
| 31 | |||||||||||
| 32 | 0 | ▶ | sub init { | ||||||||
|
Subroutine
init: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 33 | 0 | my $self = shift; | |||||||||
| 34 | 0 | return $self; | |||||||||
| 35 | } | ||||||||||
| 36 | |||||||||||
| 37 | 0 | ▶ | sub run { | ||||||||
|
Subroutine
run: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 38 | 0 | my $self = shift; | |||||||||
| 39 | 0 | return $self; | |||||||||
| 40 | } | ||||||||||
| 41 | |||||||||||
| 42 | 0 | ▶ | sub post { | ||||||||
|
Subroutine
post: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 43 | 0 | my $self = shift; | |||||||||
| 44 | 0 | return $self; | |||||||||
| 45 | } | ||||||||||
| 46 | |||||||||||
| 47 | 2 | 1; | |||||||||
| 48 | |||||||||||
| 49 | __END__ | ||||||||||