File: | lib/Yukki/Model.pm |
Coverage: | 100.0% |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Yukki::Model; | ||||||
2 | |||||||
3 | 3 3 | 1082 8 | use v5.24; | ||||
4 | 3 3 3 | 10 4 20 | use utf8; | ||||
5 | 3 3 3 | 57 4 12 | use Moo; | ||||
6 | |||||||
7 | 3 3 3 | 636 4 13 | use Type::Utils; | ||||
8 | |||||||
9 | 3 3 3 | 2663 6 11 | use namespace::clean; | ||||
10 | |||||||
11 | # ABSTRACT: Base class for model objects | ||||||
12 | |||||||
13 - 23 | =head1 DESCRIPTION This is the base class used for model objects. =head1 ATTRIBUTES =head2 app This is the L<Yukki> application instance. =cut | ||||||
24 | |||||||
25 | has app => ( | ||||||
26 | is => 'ro', | ||||||
27 | isa => class_type('Yukki'), | ||||||
28 | required => 1, | ||||||
29 | weak_ref => 1, | ||||||
30 | handles => 'Yukki::Role::App', | ||||||
31 | ); | ||||||
32 | |||||||
33 | 1; |