1 package Moose::Meta::Method::Accessor::Native::Counter::Writer;
6 our $AUTHORITY = 'cpan:STEVAN';
10 with 'Moose::Meta::Method::Accessor::Native::Writer';
12 sub _constraint_must_be_checked {
15 my $attr = $self->associated_attribute;
17 return $attr->has_type_constraint
18 && ($attr->type_constraint->name =~ /^(?:Num|Int)$/
19 || ($attr->should_coerce && $attr->type_constraint->has_coercion)