Declare/Meta/Attribute.pm

filter: Statementstmt 94.4% 17 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 85.7% 6 / 7 Podpod n/a totaltotal 92.0% 23 / 25 CC 1 SCAR 1.3
CC
1
Cov
94%
_compile
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« Declare/Meta/Slot.pm ↑ Summary Declare/Meta/Message.pm »
1 package POE::Declare::Meta::Attribute;
2  
3 =pod
4  
5 =head1 NAME
6  
7 POE::Declare::Meta::Attribute - Named accessor with read-only accessor
8  
9 =head1 SYNOPSIS
10  
11 declare status => 'Attribute';
12
13 my $object = My::Class->new;
14
15 print $object->status . "\n";
16  
17 =head1 DESCRIPTION
18  
19 A B<POE::Declare::Meta::Attribute> is a L<POE::Declare::Meta::Slot> subclass
20 that represents the simplest possible slot, a named attribute with a data
21 storage element in the object HASH, and a readonly accessor.
22  
23 =cut
24  
25 7 ▶use 5.008007;
Subroutine BEGIN: called CC=1 SCAR=0.0
26 7 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
27 7 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
28 7 ▶use POE::Declare::Meta::Slot ();
Subroutine BEGIN: called CC=1 SCAR=0.0
29  
30 7 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
31 BEGIN {
32 7 ▶ $VERSION = '0.23_01';
Subroutine BEGIN: called CC=1 SCAR=0.0
33 7 @ISA = 'POE::Declare::Meta::Slot';
34 }
35  
36  
37  
38  
39  
40 #####################################################################
41 # Main Methods
42  
43 0 ▶sub _compile { <<"END_PERL" }
Subroutine _compile: not called CC=1 SCAR=6.9
44 use Class::XSAccessor getters => { $_[0]->{name} => '$_[0]->{name}' };
45 END_PERL
46  
47 7 1;
48  
49 =pod
50  
51 =head1 SUPPORT
52  
53 Bugs should be always be reported via the CPAN bug tracker at
54  
55 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=POE-Declare>
56  
57 For other issues, or commercial enhancement or support, contact the author.
58  
59 =head1 AUTHORS
60  
61 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
62  
63 =head1 SEE ALSO
64  
65 L<POE>, L<POE::Declare>
66  
67 =head1 COPYRIGHT
68  
69 Copyright 2006 - 2009 Adam Kennedy.
70  
71 This program is free software; you can redistribute
72 it and/or modify it under the same terms as Perl itself.
73  
74 The full text of the license can be found in the
75 LICENSE file included with this module.
76  
77 =cut
« Declare/Meta/Slot.pm ↑ Summary Declare/Meta/Message.pm »