public function value($value, $rules, string $key, string $group = null, array $messages = []): self
    {
        return $this->validateInput($value, new Configuration($rules, $key, $group), $messages);
    }
public function value($value, $rules, string $key, string $group = null, array $messages = []): self
    {
        return $this->validateInput($value, new Configuration($rules, $key, $group), $messages);
    }
public function value ( $ value , $ rules , string $ key , string $ group = null , array $ messages = [ ] ) : self { return $ this -> validateInput ( $ value , new Configuration ( $ rules , $ key , $ group ) , $ messages ) ; }
Validates a single value with the given rules.

@param mixed       $value
@param AllOf|array $rules
@param string      $key
@param string|null $group
@param string[]    $messages

@return self
Validates a single value with the given rules .