my $target_tc = __PACKAGE__->meta->find_attribute_by_name('target')
->type_constraint;
my $target_tc = __PACKAGE__->meta->find_attribute_by_name('target')
->type_constraint;
-=head2 C<user_constraint>
-
-An optional user defined code reference which predates checking the target for validity.
-
-=cut
-
-has 'user_constraint' => (
- is => 'ro',
- isa => 'Maybe[CodeRef]',
-);
-
=head1 METHODS
=head1 METHODS
-=head2 C<< new name => $name, mapper => $mapper, target => $target, [ user_constraint => sub { ... } ] >>
+=head2 C<< new name => $name, mapper => $mapper, target => $target >>
Constructs a type constraint object that will attempt to autocoerce objects that are not valid according to C<$target> by loading the class returned by C<$mapper>.
Constructs a type constraint object that will attempt to autocoerce objects that are not valid according to C<$target> by loading the class returned by C<$mapper>.