line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
|
2
|
|
|
|
|
|
|
use 5.014; |
3
|
18
|
|
|
18
|
|
10642
|
use strict; |
|
18
|
|
|
|
|
64
|
|
4
|
18
|
|
|
18
|
|
109
|
use warnings; |
|
18
|
|
|
|
|
38
|
|
|
18
|
|
|
|
|
369
|
|
5
|
18
|
|
|
18
|
|
71
|
use Moo::Role; |
|
18
|
|
|
|
|
42
|
|
|
18
|
|
|
|
|
435
|
|
6
|
18
|
|
|
18
|
|
74
|
|
|
18
|
|
|
|
|
33
|
|
|
18
|
|
|
|
|
156
|
|
7
|
|
|
|
|
|
|
our $VERSION = '0.02'; |
8
|
|
|
|
|
|
|
|
9
|
|
|
|
|
|
|
=head1 NAME |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
GraphQL::Role::Composite - GraphQL object role |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
=head1 SYNOPSIS |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
with qw(GraphQL::Role::Composite); |
16
|
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
# or runtime |
18
|
|
|
|
|
|
|
Role::Tiny->apply_roles_to_object($foo, qw(GraphQL::Role::Composite)); |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=head1 DESCRIPTION |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
Allows type constraints for composite objects. |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
=cut |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable(); |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
1; |