Set if an exact match of the sourceValue attribute matches this entry.

@param boolean $includeBoundary A boolean value.
@throws \InvalidArgumentException If $includeBoundary is not a boolean.
964088
public function setIncludeBoundary($includeBoundary)
    {
        if (is_bool($includeBoundary)) {
            $this->includeBoundary = $includeBoundary;
        } else {
            $msg = "IncludeBoudary must be a boolean value, '" . gettype($includeBoundary) . "' given";
            throw new InvalidArgumentException($msg);
        }
    }
29301
private function doEvaluate(APILimitationValue $value, array $targets): bool
    {
        foreach ($targets as $target) {
            if (!$target instanceof Section && !$target instanceof SPISection) {
                throw new InvalidArgumentException('$targets', 'Must contain objects of type: Section');
            }

            if (!in_array($target->id, $value->limitationValues)) {
                return false;
            }
        }

        return true;
    }
536131
public function offsetSet($offset, $value): void
    {
        if ($this->isValidEntity($value)) {
            if (is_null($offset) || mb_strlen($offset) == 0) {
                $this->list[] = $value;
            } else {
                $this->list[$offset] = $value;
            }
        } else {
            throw new \InvalidArgumentException(sprintf('This collection does\'t accept this entity "%s"', gettype($value)));
        }
    }
1293088
public function set( $key, &$value, $overwrite = false )
	{
		if( isset( $GLOBALS[$this->poolKey][$key] ) && !$overwrite )
			throw new InvalidArgumentException( 'Element "'.$key.'" is already registered.' );
		$GLOBALS[$this->poolKey][$key]	=& $value;
	}
304799
public function getSPARQL( $includePrefixes = true ) {
		if ( !is_bool( $includePrefixes ) ) {
			throw new InvalidArgumentException( '$includePrefixes has to be a bool' );
		}

		$this->usageValidator->validate();

		$sparql = $includePrefixes ? $this->prefixBuilder->getSPARQL() : '';
		// @todo throw an exception instead of defaulting to SELECT?
		$sparql .= $this->queryForm ?: 'SELECT';
		$sparql .= ' ' . $this->uniqueness . $this->formatSelects() . ' WHERE';
		$sparql .= ' {' . $this->graphBuilder->getSPARQL() . ' }';
		$sparql .= $this->modifierBuilder->getSPARQL();

		return $sparql;
	}
448996
protected static function isDeleteableIncludedResource(array &$mappings, $parentType, $includeValue)
    {
        if (!isset($includeValue[Serializer::CLASS_IDENTIFIER_KEY])) {
            return true;
        }

        return !empty($mappings[$parentType])
        && count($mappings[$parentType]->getIncludedResources()) > 0
        && false === in_array($includeValue[Serializer::CLASS_IDENTIFIER_KEY], $mappings[$parentType]->getIncludedResources(), true);
    }
626719
public function setIsValid($isValid)
    {
        if (is_bool($isValid)) {
            $this->isValid = $isValid;
        } else {
            throw new \InvalidArgumentException(
                "Invalid value '" . $isValid . "' for argument 'isValid' given."
            );
        }

        return $this;
    }
864673
protected function checkValueStructure(BaseValue $value)
    {
        if (!is_array($value->destinationContentIds)) {
            throw new InvalidArgumentType(
                '$value->destinationContentIds',
                'array',
                $value->destinationContentIds
            );
        }

        foreach ($value->destinationContentIds as $key => $destinationContentId) {
            if (!is_int($destinationContentId) && !is_string($destinationContentId)) {
                throw new InvalidArgumentType(
                    "\$value->destinationContentIds[$key]",
                    'string|int',
                    $destinationContentId
                );
            }
        }
    }
139565
public function setValue($value)
    {
        if (null !== $value) {
            if (!$this->validateValue($value)) {
                throw new \InvalidArgumentException(\sprintf(
                    'Binding invalid value (type "%s") into filter "%s" (%s)',
                    \is_object($value) ? \get_class($value) : \gettype($value),
                    $this->name,
                    \get_class($this)
                ));
            }

            $this->value = $value;
            $this->updateBound();
        }

        return $this;
    }
127124
public function set($key, $value)
    {
        if (!is_string($key)) {
            throw new \InvalidArgumentException('$key must be string');
        }

        if (!is_string($value) && !is_numeric($value) && !is_bool($value)) {
            throw new \InvalidArgumentException('$value must be string, int or bool');
        }

        $this->annotations[] = [
            'key' => $key,
            'value' => (string) $value
        ];
    }
917927
public function setMatchTableEntries(MatchTableEntryCollection $matchTableEntries)
    {
        if (count($matchTableEntries) > 0) {
            $this->matchTableEntries = $matchTableEntries;
        } else {
            $msg = "A MatchTable object must contain at least one MatchTableEntry object.";
            throw new InvalidArgumentException($msg);
        }
    }
1359656
public function setCaptureOnShipment($captureOnShipment)
    {
        if (false === is_bool($captureOnShipment)) {
            throw new \InvalidArgumentException('captureOnShipment must be boolean');
        }
        $this->data->set('captureOnShipment', $captureOnShipment);
    }
72415
protected function checkValue(): void
    {
        if (!ctype_digit($this->value) && !is_numeric($this->value) && !empty($this->value)) {
            throw new InvalidArgumentException('NumericParser: Value must be of type numeric');
        }
    }
492094
public function hasRequiredArgument($includeBase = true)
    {
        Assert::boolean($includeBase, 'The parameter $includeBase must be a boolean. Got: %s');

        if (!$this->hasOptionalArg && count($this->arguments) > 0) {
            return true;
        }

        if ($includeBase && $this->baseFormat) {
            return $this->baseFormat->hasRequiredArgument();
        }

        return false;
    }
985733
protected function checkValueStructure(BaseValue $value)
    {
        if (!$value->authors instanceof AuthorCollection) {
            throw new InvalidArgumentType(
                '$value->authors',
                AuthorCollection::class,
                $value->authors
            );
        }
    }
86085
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;
	}
224986
public function setTimeDependent($timeDependent)
    {
        if (gettype($timeDependent) === 'boolean') {
            $this->timeDependent = $timeDependent;
        } else {
            $msg = "The timeDependent argument must be a boolean value, '" . gettype($timeDependent) . "' given.";
            throw new InvalidArgumentException($msg);
        }
    }