Tangence/Meta/Argument.pm

filter: Statementstmt 100% 16 / 16 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 100% 2 / 2 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
« Tangence/Constants.pm ↑ Summary Tangence/Meta/Event.pm »
1 # You may distribute under the terms of either the GNU General Public License
2 # or the Artistic License (the same terms as Perl itself)
3 #
4 # (C) Paul Evans, 2011-2024 -- leonerd@leonerd.org.uk
5  
6 15 ▶use v5.26;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 15 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 15 ▶use Object::Pad 0.800;
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 package Tangence::Meta::Argument 0.33;
11 class Tangence::Meta::Argument :strict(params);
12  
13 15 =head1 NAME
14  
15 C<Tangence::Meta::Argument> - structure representing one C<Tangence> method or event argument
16  
17 =head1 DESCRIPTION
18  
19 This data structure object stores information about one argument to a
20 L<Tangence> class method or event. Once constructed, such objects are
21 immutable.
22  
23 =cut
24  
25 =head1 CONSTRUCTOR
26  
27 =cut
28  
29 =head2 new
30  
31 $argument = Tangence::Meta::Argument->new( %args )
32  
33 Returns a new instance initialised by the given arguments.
34  
35 =over 8
36  
37 =item name => STRING
38  
39 Name of the argument
40  
41 =item type => STRING
42  
43 Type of the arugment as a L<Tangence::Meta::Type> reference
44  
45 =back
46  
47 =cut
48  
49 field $name :reader :param = undef;
50 2 ▶field $type :reader :param;
Subroutine name: called CC=1 SCAR=0.0
Subroutine type: called CC=1 SCAR=0.0
Pod documented
Pod documented
51  
52 =head1 ACCESSORS
53  
54 =cut
55  
56 =head2 name
57  
58 $name = $argument->name
59  
60 Returns the name of the class
61  
62 =cut
63  
64 =head2 type
65  
66 $type = $argument->type
67  
68 Return the type as a L<Tangence::Meta::Type> reference.
69  
70 =cut
71  
72 =head1 AUTHOR
73  
74 Paul Evans <leonerd@leonerd.org.uk>
75  
76 =cut
77  
78 15 0x55AA;
« Tangence/Constants.pm ↑ Summary Tangence/Meta/Event.pm »