| 1 | package Statocles::Event; | ||
| 2 | 60 | our $VERSION = '0.099'; | |
| 3 | # ABSTRACT: Events objects for Statocles | ||
| 4 | |||
| 5 | #pod =head1 EVENTS | ||
| 6 | #pod | ||
| 7 | #pod =head2 Statocles::Event::Pages | ||
| 8 | #pod | ||
| 9 | #pod An event with L<page objects|Statocles::Page>. | ||
| 10 | #pod | ||
| 11 | #pod =cut | ||
| 12 | |||
| 13 | package Statocles::Event::Pages; | ||
| 14 | |||
| 15 | 60 | ▶ | use Statocles::Base 'Class'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 16 | 60 | extends 'Beam::Event'; | |
| 17 | |||
| 18 | #pod =attr pages | ||
| 19 | #pod | ||
| 20 | #pod An array of L<Statocles::Page> objects | ||
| 21 | #pod | ||
| 22 | #pod =cut | ||
| 23 | |||
| 24 | 60 | has pages => ( | |
| 25 | is => 'ro', | ||
| 26 | isa => ArrayRef[ConsumerOf['Statocles::Page']], | ||
| 27 | required => 1, | ||
| 28 | ); | ||
| 29 | |||
| 30 | 60 | 1; | |
| 31 | |||
| 32 | __END__ | ||