Beispiel #1
0
 public function that(Assertion $assertion, $message = "")
 {
     $this->add($assertion);
     parent::that($assertion, $message);
 }
Beispiel #2
0
 /**
  * Start validation and allow NULL, returns {@link AssertionChain}
  *
  * @param mixed  $value
  * @param string $defaultMessage
  * @param string $defaultPropertyPath
  *
  * @return \Assert\AssertionChain
  * @deprecated In favour of Assert::thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null)
  */
 function thatNullOr($value, $defaultMessage = null, $defaultPropertyPath = null)
 {
     return Assert::that($value, $defaultMessage, $defaultPropertyPath)->nullOr();
 }