/** * @since 2.4 */ public function clear() { $this->dataTypeRegistry->clear(); ValueValidatorRegistry::getInstance()->clear(); self::$instance = null; }
/** * Check if property is range restricted and, if so, whether the current value is allowed. * Creates an error if the value is illegal. */ protected function checkAllowedValues() { ValueValidatorRegistry::getInstance()->getConstraintValueValidator()->validate($this); }
public function testGetConstraintValueValidator() { $instance = new ValueValidatorRegistry(); $this->assertInstanceOf('\\SMW\\DataValues\\ValueValidators\\ConstraintValueValidator', $instance->getConstraintValueValidator()); }