« blib/lib/DB/Introspector/Base/IntegerColumn.pm
↑ Summary
blib/lib/DB/Introspector/Base/SpecialColumn.pm »
| 1 | package DB::Introspector::Base::StringColumn; | ||
| 2 | |||
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | 1 | ▶ | use base qw( DB::Introspector::Base::Column ); |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 0 | ▶ | sub new { |
|
Subroutine
new: not called CC=1 SCAR=6.9
Pod
documented
| |||
| 8 | 0 | my $class = shift; | |
| 9 | 0 | my $name = shift; | |
| 10 | |||
| 11 | 0 | my $min = shift; | |
| 12 | 0 | my $max = shift; | |
| 13 | |||
| 14 | 0 | my $self = $class->SUPER::new($name); | |
| 15 | 0 | $self->{_min} = $min; | |
| 16 | 0 | $self->{_max} = $max; | |
| 17 | |||
| 18 | 0 | return $self; | |
| 19 | } | ||
| 20 | |||
| 21 | 0 | ▶ | sub min_length { |
|
Subroutine
min_length: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 22 | 0 | my $self = shift; | |
| 23 | 0 | return $self->{_min}; | |
| 24 | } | ||
| 25 | |||
| 26 | 0 | ▶ | sub max_length { |
|
Subroutine
max_length: not called CC=1 SCAR=6.9
Pod
undocumented
| |||
| 27 | 0 | my $self = shift; | |
| 28 | 0 | return $self->{_max}; | |
| 29 | } | ||
| 30 | |||
| 31 | 1 | 1; | |
| 32 | __END__ | ||