@param bool $multiple

@return $this|self
359716
public function setMultiple(bool $multiple = true)
    {
        if ($multiple && $this->getPrimitiveType() && substr($this->getPrimitiveType(), -2) != '[]') {
            $this->setValidation($this->getPrimitiveType() . '[]');
        } elseif (!$multiple && $this->getPrimitiveType() && substr($this->getPrimitiveType(), -2) == '[]') {
            $this->setValidation(substr($this->getPrimitiveType(), 0, -2));
        }

        if ($multiple) {
            $this->getField()->addProp('multiple');
        } else {
            $this->getField()->removeProp('multiple');
        }

        return $this;
    }
605015
public function setSearch(bool $search): self
    {
        if (!$this instanceof Attributable) {
            return $this;
        }

        $searchOption = 'data-selectAR--search';
	    $search ? $this->setAttribute($searchOption, true) : $this->removeAttribute($searchOption);

	    if ($this->hasAttribute('data-selectAR')) {
	    	$this->removeAttribute('data-selectAR');
	    }
        
        return $this;
    }
224315
public function withPlayAll(bool $playAll): self
    {
        if ($this->playAll == $playAll) {
            return $this;
        }

        $url = clone $this;
        $url->playAll = $playAll;

        return $url;
    }
291468
public function required($value = true)
    {
        $this->setAttribute('required', $value);

        $this->required = $value;

        return $this;
    }
831414
public function setMultipleOfIdVersion($v)
    {
        if ($v !== null) {
            $v = (int) $v;
        }

        if ($this->multiple_of_id_version !== $v) {
            $this->multiple_of_id_version = $v;
            $this->modifiedColumns[SkillVersionTableMap::COL_MULTIPLE_OF_ID_VERSION] = true;
        }

        return $this;
    }
765618
public function primary($primary = true)
    {
        $primary = (bool) $primary;

        $this->primary = $primary;

        if ($primary) {
            $this->signed = false;
            $this->allowNull = false;
            $this->autoIncrement = true;
            $this->default = false;
        }

        return $this;
    }
865993
public static function isMultiple($value, $multiple)
    {
        \settype($value, 'float');
        \settype($multiple, 'float');

        return (float) 0 == \fmod($value, $multiple);
    }
663116
public function withInitializable(bool $initializable): self
    {
        $metadata = clone $this;
        $metadata->initializable = $initializable;

        return $metadata;
    }
158241
public function setValues(array $values) : MultipleSelect
    {
        foreach ($this->getOptions() as $option) {
            $option->setSelected(in_array($option->getValue(), $values, true));
        }

        return $this;
    }
277968
public function ack($deliveryTag = 0, $multiple = false)
    {
        return $this->getClient()->ack($this->getChannelId(), $deliveryTag, $multiple);
    }
31130
public function setInit(bool $init)
    {
        $this->init = $init;

        $this->hostConfig = array_merge($this->hostConfig, ['Init' => $init]);

        return $this;
    }
1136646
public function select($multiple = false)
	{
		if ( !$this->isSelected() ) {
			if ( $this->select === null ) {
				throw new SelectException(
					'No SELECT element association defined',
					SelectException::TYPE_UNBOUND_OPTION
				);
			}

			$this->select->getWrappedElement()->selectOption($this->getValue(), $multiple);
		}

		return $this;
	}
444061
public function clearErrors(bool $deep = false): self
    {
        $this->errors = [];

        if ($deep) {
            // Clear errors from children
            foreach ($this as $child) {
                if ($child instanceof ClearableErrorsInterface) {
                    $child->clearErrors(true);
                }
            }
        }

        return $this;
    }
881761
private static function selectOptions(
        array $options = [],
        $actualValue = '',
        $multiple = false
    ) {
        $option = '';
        foreach ($options as $value => $label) {
            if (is_array($label)) {
                $option .= '<optgroup label="'. $value .'">';
                $option .= self::selectOptions($label, $actualValue, $multiple);
                $option .= '</optgroup>';
            } else {
                $selected = (!empty($value) && (
                    ($multiple === true && in_array($value, $actualValue)) ||
                    ($multiple === false && $value == $actualValue)
                )) ? ' selected' : '';
                $option .= '<option value="'. $value .'"'. $selected .'>'
                    . $label .'</option>';
            }
        }
        return $option;
    }
1262417
public function setRequired(bool $required) : self
    {
        $required = (bool)$required;
        $this->required = $required;
        return $this;
    }
886147
public function distinct(bool $value = true)
    {
        $instance = $this->selectQueryInstance();

        $instance->selectQuery()->distinct($value);

        return $instance;
    }
1131492
public function setMultiple(array $multiple)
    {
        $this->multiple = $multiple;

        if(count($this->multiple) > 0) {
            if(!in_array(0, $this->notFilterableFields)) {
                $this->notFilterableFields[] = 0;
            }
            if(!in_array(0, $this->notSortableFields)) {
                $this->notSortableFields[] = 0;
            }
        }

        return $this;
    }