| 1 | package EntityModel::Web::Page::Content; | ||||||||||
| 2 | { | ||||||||||
| 3 | 10 | $EntityModel::Web::Page::Content::VERSION = '0.004'; | |||||||||
| 4 | } | ||||||||||
| 5 | 10 | ▶ | use EntityModel::Class { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | 10 | section => 'string', | |||||||||
| 7 | template => 'string', | ||||||||||
| 8 | 10 | }; | |||||||||
| 9 | |||||||||||
| 10 | =head1 NAME | ||||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | |||||||||||
| 14 | =head1 SYNOPSIS | ||||||||||
| 15 | |||||||||||
| 16 | =head1 VERSION | ||||||||||
| 17 | |||||||||||
| 18 | version 0.004 | ||||||||||
| 19 | |||||||||||
| 20 | =head1 DESCRIPTION | ||||||||||
| 21 | |||||||||||
| 22 | =cut | ||||||||||
| 23 | |||||||||||
| 24 | 10 | ▶ | use Data::Dumper; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 25 | |||||||||||
| 26 | =head1 METHODS | ||||||||||
| 27 | |||||||||||
| 28 | =cut | ||||||||||
| 29 | |||||||||||
| 30 | 8 | ▶ | sub new { | ||||||||
|
Subroutine
new: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 31 | 8 | my $class = shift; | |||||||||
| 32 | 8 | my $self = $class->SUPER::new; | |||||||||
| 33 | 8 | my %args = @_; | |||||||||
| 34 | 8 | ▶ | if(defined(my $section = delete $args{section})) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 35 | 7 | $self->{section} = $section; | |||||||||
| 36 | } | ||||||||||
| 37 | 8 | ▶ | if(defined(my $tmpl = delete $args{template})) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 38 | 8 | $self->{template} = $tmpl; | |||||||||
| 39 | } | ||||||||||
| 40 | 8 | return $self; | |||||||||
| 41 | } | ||||||||||
| 42 | |||||||||||
| 43 | 10 | 1; | |||||||||
| 44 | |||||||||||
| 45 | __END__ | ||||||||||