protected function validate(PropertyMetadata $metadata, string $name, & $value)
	{
		if (!$metadata->isValid($value)) {
			$class = get_class($this);
			throw new InvalidArgumentException("Value for {$class}::\${$name} property is invalid.");
		}
	}
protected function validate(PropertyMetadata $metadata, string $name, & $value)
	{
		if (!$metadata->isValid($value)) {
			$class = get_class($this);
			throw new InvalidArgumentException("Value for {$class}::\${$name} property is invalid.");
		}
	}
protected function validate ( PropertyMetadata $ metadata , string $ name , & $ value ) { if ( ! $ metadata -> isValid ( $ value ) ) { $ class = get_class ( $ this ) ; throw new InvalidArgumentException ( "Value for {$class}::\${$name} property is invalid." ) ; } }
Validates the value.
@param  mixed $value
@throws InvalidArgumentException
Validates the value .