File Coverage

blib/lib/Data/Serializer/PHP/Serialization.pm
Criterion Covered Total %
statement 15 15 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 2 2 100.0
total 24 24 100.0


line stmt bran cond sub pod time code
1             package Data::Serializer::PHP::Serialization;
2 11     11   575 BEGIN { @Data::Serializer::PHP::Serialization::ISA = qw(Data::Serializer) }
3              
4 11     11   118 use warnings;
  11         27  
  11         338  
5 11     11   62 use strict;
  11         26  
  11         315  
6 11     11   77 use PHP::Serialization qw();
  11         27  
  11         253  
7 11     11   60 use vars qw($VERSION @ISA);
  11         28  
  11         1582  
8              
9             $VERSION = '0.02';
10              
11             sub serialize {
12 147     147 1 586 return PHP::Serialization::serialize($_[1]);
13             }
14              
15             sub deserialize {
16 147     147 1 634 return PHP::Serialization::unserialize($_[1]);
17             }
18              
19              
20              
21              
22             1;
23             __END__
24             #
25              
26             =head1 NAME
27              
28             Data::Serializer::PHP::Serialization - Creates bridge between Data::Serializer and PHP::Serialization
29              
30             =head1 SYNOPSIS
31              
32             use Data::Serializer::PHP::Serialization;
33              
34             =head1 DESCRIPTION
35              
36             Module is used internally to Data::Serializer
37              
38              
39             =over 4
40              
41             =item B<serialize> - Wrapper to normalize serializer method name
42              
43             =item B<deserialize> - Wrapper to normalize deserializer method name
44              
45             =back
46              
47             =head1 AUTHOR
48            
49             Neil Neely <neil@neely.cx>
50            
51             =head1 COPYRIGHT
52            
53             Copyright 2004 by Neil Neely. All rights reserved.
54             This program is free software; you can redistribute it
55             and/or modify it under the same terms as Perl itself.
56            
57             =head1 SEE ALSO
58              
59             perl(1), Data::Serializer(3), PHP::Serialization(3).
60              
61             =cut
62