/**
* Sets an expression to run for the validation.
*
* The expression receives the value of the node and must return it. It can
* modify it.
* An exception should be thrown when the node is not valid.
*/
public function validate(): ExprBuilder
{ return $this->
validation()->
rule();
} /**
* Sets whether the node can be overwritten.
*
* @return $this
*/
public function cannotBeOverwritten(bool
$deny = true
):
static { $this->
merge()->
denyOverwrite($deny);