AutoReply/DB.pm

filter: Statementstmt 95.2% 20 / 21 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod n/a totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
95%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« AutoReply/Recipient.pm ↑ Summary Filter/AutoReply.pm »
1 package Email::AutoReply::DB;
2 1 our $rcsid = '$Id: DB.pm 3002 2008-06-05 20:23:24Z adam $';
3  
4 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
5 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
6  
7 1 ▶use Spiffy '-Base';
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶ 
Subroutine BEGIN: called CC=1 SCAR=0.0
Subroutine BEGIN: called CC=1 SCAR=0.0
9 =head1 NAME
10  
11 Email::AutoReply::DB - interface defining Email::AutoReply database interaction
12  
13 =head1 DESCRIPTION
14  
15 Email::AutoReply keeps track of who it's sent email to and when. Any subclass
16 of this class can be used for this purpose. Subclassers must implement all
17 methods.
18  
19 =head2 METHODS
20  
21 =over 4
22  
23 =item B<store>
24  
25 Store an Email::AutoReply::Recipient in the database.
26  
27 Input: Takes one argument, a (populated) Email::AutoReply::Recipient object.
28  
29 Output: none.
30  
31 =cut
32  
33 1 stub 'store';
34  
35 =item B<fetch>
36  
37 Fetch an Email::AutoReply::Recipient from the database, if one exists.
38  
39 Input: Takes one string argument, an email address.
40  
41 Output: A populated Email::AutoReply::Recipient or 0 if none could be
42 found matching the given string.
43  
44 =cut
45  
46 1 stub 'fetch';
47  
48 =item B<fetch_all>
49  
50 Fetch all Email::AutoReply::Recipient objects from the database, if any exist.
51  
52 Input: none.
53  
54 Output: A list of Email::AutoReply::Recipient objects, or zero.
55  
56 =cut
57  
58 1 stub 'fetch_all';
59  
60 1 return 1;
61  
62 0 __END__
« AutoReply/Recipient.pm ↑ Summary Filter/AutoReply.pm »