5e80f2545b22638765972e9b04912ebbce2bfdab
[catagits/Catalyst-Runtime.git] / t / lib / TestAppCustomContainer / Model / DefaultSetup.pm
1 package TestAppCustomContainer::Model::Foo;
2 use Moose;
3 extends 'Catalyst::Model';
4 with 'TestAppCustomContainer::Role::ACCEPT_CONTEXT';
5
6 has bar_got_it => (
7     traits  => ['Counter'],
8     is      => 'ro',
9     isa     => 'Int',
10     default => 0,
11     handles => {
12         inc_bar_got_it => 'inc',
13     },
14 );
15
16 has baz_got_it => (
17     traits  => ['Counter'],
18     is      => 'ro',
19     isa     => 'Int',
20     default => 0,
21     handles => {
22         inc_baz_got_it => 'inc',
23     },
24 );
25
26 sub COMPONENT { shift->new() }
27
28 __PACKAGE__->meta->make_immutable;
29
30 no Moose;
31 1;