Declare/Meta/Attribute.pm

filter: Statementstmt 100% 18 / 18 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 7 / 7 Podpod 0.0% 0 / 1 totaltotal 96.1% 25 / 26 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« 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 These methods are intended for use outside of the object, allowing parents
24 and others to read publically visible state advertised by the object.
25  
26 =cut
27  
28 5 ▶use 5.008007;
Subroutine BEGIN: called CC=1 SCAR=0.0
29 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
30 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
31 5 ▶use POE::Declare::Meta::Slot ();
Subroutine BEGIN: called CC=1 SCAR=0.0
32  
33 5 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
34 5 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
35 5 $VERSION = '0.59';
36 5 @ISA = 'POE::Declare::Meta::Slot';
37 }
38  
39  
40  
41  
42  
43 #####################################################################
44 # Main Methods
45  
46 10 ▶sub as_perl { <<"END_PERL" }
Subroutine as_perl: called CC=1 SCAR=0.0
Pod undocumented
47 use Class::XSAccessor {
48 getters => {
49 $_[0]->{name} => '$_[0]->{name}',
50 },
51 };
52 END_PERL
53  
54 5 1;
55  
56 =pod
57  
58 =head1 SUPPORT
59  
60 Bugs should be always be reported via the CPAN bug tracker at
61  
62 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=POE-Declare>
63  
64 For other issues, or commercial enhancement or support, contact the author.
65  
66 =head1 AUTHORS
67  
68 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
69  
70 =head1 SEE ALSO
71  
72 L<POE>, L<POE::Declare>
73  
74 =head1 COPYRIGHT
75  
76 Copyright 2006 - 2012 Adam Kennedy.
77  
78 This program is free software; you can redistribute
79 it and/or modify it under the same terms as Perl itself.
80  
81 The full text of the license can be found in the
82 LICENSE file included with this module.
83  
84 =cut
« Declare/Meta/Slot.pm ↑ Summary Declare/Meta/Message.pm »