src/Node/Node.php
public function setValidationConfig(string $name, $value): NodeInterface
    {
        $this->setMetadataAttr('validations.'.$name, $value);

        return $this;
    }
public function setValidationConfig(string $name, $value): NodeInterface
    {
        $this->setMetadataAttr('validations.'.$name, $value);

        return $this;
    }
public function setValidationConfig ( string $ name , $ value ) : NodeInterface { $ this -> setMetadataAttr ( 'validations.' . $ name , $ value ) ; return $ this ; }
Sets a validation config.

@param string $name - Validation name.
@param mixed $value - Validation value.

@return NodeInterface
Sets a validation config .