public static function that($value, $defaultMessage = null, $defaultPropertyPath = null) { $assertionChain = new AssertionChain($value, $defaultMessage, $defaultPropertyPath); return $assertionChain->setAssertionClassName(static::$assertionClass); }
public function that($value, $propertyPath, $defaultMessage = null) { $this->currentChainFailed = false; $this->thisChainTryAll = false; $this->currentChain = Assert::that($value, $defaultMessage, $propertyPath); return $this; }