| 1 | package Time::Progress::Stored::Storage; | ||
| 2 | 1 | $Time::Progress::Stored::Storage::VERSION = '1.002'; | |
| 3 | 1 | ▶ | use Moo; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use true; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Time::Progress::Stored::Storage - Base class for storing and retrieving report data structures | ||
| 9 | |||
| 10 | =head1 METHODS | ||
| 11 | |||
| 12 | =head2 store($id, $content) : Bool | ||
| 13 | |||
| 14 | Store the current report $content (a data structure) under the $id | ||
| 15 | key. | ||
| 16 | |||
| 17 | =cut | ||
| 18 | |||
| 19 | 0 | ▶ | sub store { |
|
Subroutine
store: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 20 | 0 | my $self = shift; | |
| 21 | 0 | my ($id, $content) = @_; | |
| 22 | 0 | croak("Abstract"); | |
| 23 | } | ||
| 24 | |||
| 25 | =head2 retrieve($id) : $content | undef | ||
| 26 | |||
| 27 | Retrieve the current report $content under the $id key, or undef if | ||
| 28 | none was found. | ||
| 29 | |||
| 30 | =cut | ||
| 31 | |||
| 32 | 0 | ▶ | sub retrieve { |
|
Subroutine
retrieve: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 33 | 0 | my $self = shift; | |
| 34 | 0 | my ($id) = @_; | |
| 35 | 0 | croak("Abstract"); | |
| 36 | } | ||