Eve/EventHandler.pm

filter: Statementstmt 90.9% 10 / 11 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 75.0% 3 / 4 Podpod 100% 1 / 1 totaltotal 87.5% 14 / 16 CC 1 SCAR 2.2
CC
1
Cov
91%
handle
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.2
« Eve/Gateway/PgSql.pm ↑ Summary Eve/HttpRequest.pm »
1 package Eve::EventHandler;
2  
3 1 ▶use parent qw(Eve::Class);
Subroutine BEGIN: called CC=1 SCAR=0.0
4  
5 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
6 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
7  
8 =head1 NAME
9  
10 Eve::EventHandler - a base class for event handlers.
11  
12 =head1 SYNOPSIS
13  
14 use parent qw(Eve::EventHandler);
15  
16 =head1 DESCRIPTION
17  
18 B<Eve::EventHandler> is an abstraction for all the event handles
19 classes.
20  
21 =head1 METHODS
22  
23 =head2 B<handle()>
24  
25 The C<handle> method must be overriden. It is called when an
26 appropriate event is triggered.
27  
28 =head3 Arguments
29  
30 =over 3
31  
32 =item C<event>
33  
34 an event that has been triggered.
35  
36 =back
37  
38 =cut
39  
40 0 ▶sub handle {
Subroutine handle: not called CC=1 SCAR=6.9
Pod documented
41 0 Eve::Error::NotImplemented->throw();
42 }
43  
44 =head1 SEE ALSO
45  
46 =over 4
47  
48 =item L<Eve::Class>
49  
50 =item L<Eve::Event>
51  
52 =back
53  
54 =head1 LICENSE AND COPYRIGHT
55  
56 Copyright 2012 Igor Zinovyev.
57  
58 This program is free software; you can redistribute it and/or modify it
59 under the terms of either: the GNU General Public License as published
60 by the Free Software Foundation; or the Artistic License.
61  
62 See http://dev.perl.org/licenses/ for more information.
63  
64  
65 =head1 AUTHOR
66  
67 =over 4
68  
69 =item L<Sergey Konoplev|mailto:gray.ru@gmail.com>
70  
71 =back
72  
73 =cut
74  
75 1 1;
« Eve/Gateway/PgSql.pm ↑ Summary Eve/HttpRequest.pm »