public function setAutocomplete($bool)
	{
		if (!in_array($bool, [TRUE, FALSE, NULL], TRUE)) {
			throw new InvalidArgumentException('valid values are only true/false/null');
		}
		$this->autocomplete = $bool;

		return $this;
	}
public function setAutocomplete($bool)
	{
		if (!in_array($bool, [TRUE, FALSE, NULL], TRUE)) {
			throw new InvalidArgumentException('valid values are only true/false/null');
		}
		$this->autocomplete = $bool;

		return $this;
	}
public function setAutocomplete ( $ bool ) { if ( ! in_array ( $ bool , [ TRUE , FALSE , NULL ] , TRUE ) ) { throw new InvalidArgumentException ( 'valid values are only true/false/null' ) ; } $ this -> autocomplete = $ bool ; return $ this ; }
Turns autocomplete on or off.
@param bool|null $bool null to omit attribute (default)
@return static
Turns autocomplete on or off .