$fields The values to set. * @param bool $overwrite Whether to overwrite pre-existing values for $field. * @return $this */ public function setInvalid(array $fields, bool $overwrite = false); /** * Get a single value of an invalid field. Returns null if not set. * * @param string $field The name of the field. * @return mixed|null */ public function getInvalidField(string $field); /** * Sets a field as invalid and not patchable into the entity. * * @param string $field The value to set. * @param mixed $value The invalid value to be set for $field. * @return $this */ public function setInvalidField(string $field, $value); }