Assert\AssertionChain::nullOr PHP Метод

nullOr() публичный Метод

Switch chain into mode allowing nulls, ignoring further assertions.
public nullOr ( ) : AssertionChain
Результат AssertionChain
    public function nullOr()
    {
        if ($this->value === null) {
            $this->alwaysValid = true;
        }
        return $this;
    }