Sirius\Validation\Validator::remove PHP Method

remove() public method

public remove ( string $selector, mixed $name = true, mixed $options = null ) : self
$selector string data selector
$name mixed rule name or true if all rules should be deleted for that selector
$options mixed rule options, necessary for rules that depend on params for their ID
return self
    public function remove($selector, $name = true, $options = null)
    {
        if (!array_key_exists($selector, $this->rules)) {
            return $this;
        }
        /* @var $collection \Sirius\Validation\ValueValidator */
        $collection = $this->rules[$selector];
        $collection->remove($name, $options);
        return $this;
    }