/**
* Method to set certain otherwise inaccessible properties of the form field object.
*
* @param string $name The property name for which to set the value.
* @param mixed $value The value of the property.
*
* @return void
*
* @since 3.2
*/
public function __set($name, $value)
{
$value = (string) $value;
switch ($name) {
case 'maxLength':
case 'threshold':
$this->{$name} = $value;
break;
case 'lock':
case 'meter':
case 'force':
$this->{$name} = $value === 'true' || $value === $name || $value === '1';
break;
default:
parent::__set($name, $value);
}
}