Declare/Meta/Param.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 6 / 6 Podpod n/a totaltotal 100% 23 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« Declare/Meta/Internal.pm ↑ Summary
1 package POE::Declare::Meta::Param;
2  
3 =pod
4  
5 =head1 NAME
6  
7 POE::Declare::Meta::Param - A named attribute passed to the constructor
8 as a parameter.
9  
10 =head1 DESCRIPTION
11  
12 B<POE::Declare::Meta::Param> is a sub-class of
13 L<POE::Declare::Meta::Attribute>. It defines an attribute for which the
14 initial value will be passed by name to the constructor.
15  
16 The declaration does not concern itself with issues of type or
17 whether the param is required. These types of issues are left as a concern
18 for the implementation.
19  
20 After the object has been created, the parameter will be read-only.
21  
22 Any values that should be controllable after object creation should be
23 changed via a custom method or event that understands the statefulness of
24 the object, and will make the actual change to the attribute at the correct
25 time, and in the correct manner.
26  
27 By default, every class is assigned a default C<Alias> parameter.
28  
29 This parameter represents the name of the object, which should be unique at
30 a process level for the duration of the entire process and persist across
31 multiple starting and stopping of the object (if it supports stopping and
32 restarting).
33  
34 By default, each object is assigned a name based on the class and an
35 incrementing number. A typical Alias might be "Class::Name.123".
36  
37 If you wish to override this with your own name for an object, you are free
38 to do so.
39  
40 =cut
41  
42 5 ▶use 5.008007;
Subroutine BEGIN: called CC=1 SCAR=0.0
43 5 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
44 5 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
45 5 ▶use POE::Declare::Meta::Attribute ();
Subroutine BEGIN: called CC=1 SCAR=0.0
46  
47 5 ▶use vars qw{$VERSION @ISA};
Subroutine BEGIN: called CC=1 SCAR=0.0
48 5 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
49 5 $VERSION = '0.59';
50 5 @ISA = 'POE::Declare::Meta::Attribute';
51 }
52  
53 5 1;
54  
55 =pod
56  
57 =head1 SUPPORT
58  
59 Bugs should be always be reported via the CPAN bug tracker at
60  
61 L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=POE-Declare>
62  
63 For other issues, or commercial enhancement or support, contact the author.
64  
65 =head1 AUTHORS
66  
67 Adam Kennedy E<lt>adamk@cpan.orgE<gt>
68  
69 =head1 SEE ALSO
70  
71 L<POE>, L<POE::Declare>
72  
73 =head1 COPYRIGHT
74  
75 Copyright 2006 - 2012 Adam Kennedy.
76  
77 This program is free software; you can redistribute
78 it and/or modify it under the same terms as Perl itself.
79  
80 The full text of the license can be found in the
81 LICENSE file included with this module.
82  
83 =cut
« Declare/Meta/Internal.pm ↑ Summary