| 1 | 1 | ▶ | use 5.008; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package Data::Conveyor::Template::Factory; | ||
| 6 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | $Data::Conveyor::Template::Factory::VERSION = '1.103130'; | |
| 8 | } | ||
| 9 | # ABSTRACT: Stage-based conveyor-belt-like ticket handling system | ||
| 10 | |||
| 11 | # Factory class for all template classes. | ||
| 12 | 1 | ▶ | use Error::Hierarchy::Util 'assert_defined'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 13 | 1 | ▶ | use Class::Scaffold::Exception::Util 'assert_object_type'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 14 | 1 | ▶ | use parent 'Class::Scaffold::Factory'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 15 | |||
| 16 | 0 | ▶ | sub gen_handler { |
|
Subroutine
gen_handler: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 17 | 0 | my ($self, $handler_type, %args) = @_; | |
| 18 | 0 | assert_defined $args{ticket}, 'called without ticket.'; | |
| 19 | 0 | assert_object_type $args{ticket}, 'ticket'; | |
| 20 | 0 | $self->SUPER::gen_handler($handler_type, [ $args{ticket}->type ], %args); | |
| 21 | } | ||
| 22 | 1 | 1; | |
| 23 | |||
| 24 | |||
| 25 | __END__ | ||