Garden\Schema::setValidationBehavior PHP Method

setValidationBehavior() public method

Set the validation behavior for the schema, which determines how invalid properties are handled.
public setValidationBehavior ( integer $validationBehavior ) : Schema
$validationBehavior integer One of the Schema::VALIDATE_* constants.
return Schema Returns the current instance for fluent calls.
    public function setValidationBehavior($validationBehavior)
    {
        switch ($validationBehavior) {
            case self::VALIDATE_REMOVE:
            case self::VALIDATE_NOTICE:
            case self::VALIDATE_EXCEPTION:
                $this->validationBehavior = $validationBehavior;
                break;
            default:
                throw new \InvalidArgumentException('Invalid validation behavior.', 500);
        }
        return $this;
    }