5 with 'Printable', 'HasAccount';
9 predicate => 'has_title',
10 clearer => 'clear_title',
13 has first_name => ( is => 'rw' );
15 has last_name => ( is => 'rw' );
20 if ( @_ == 1 && 'ARRAY' eq ref $_[0] ) {
22 first_name => $_[0]->[0],
23 last_name => $_[0]->[1],
27 return $class->SUPER::BUILDARGS(@_);
34 my $title = join q{ }, $self->first_name, $self->last_name;
35 $title .= q[ (] . $self->title . q[)]
41 sub as_string { $_[0]->full_name }
45 __PACKAGE__->meta->make_immutable;