/** * {@inheritdoc} */ public function guard($value, Field $field) { Assertion::choice($value, [0, 1, 2], null, $field->getName()); }