public function attr($name, $args = [])
    {
        $attr = $this->hasMapping($name) ? $this->getMapping($name) : $name;
        
        if (func_num_args() > 1) {
            return $this->prefix(vsprintf($attr, (array) $args));
        }
        
        return $this->prefix($attr);
    }
public function attr($name, $args = [])
    {
        $attr = $this->hasMapping($name) ? $this->getMapping($name) : $name;
        
        if (func_num_args() > 1) {
            return $this->prefix(vsprintf($attr, (array) $args));
        }
        
        return $this->prefix($attr);
    }
public function attr ( $ name , $ args = [ ] ) { $ attr = $ this -> hasMapping ( $ name ) ? $ this -> getMapping ( $ name ) : $ name ; if ( func_num_args ( ) > 1 ) { return $ this -> prefix ( vsprintf ( $ attr , ( array ) $ args ) ) ; } return $ this -> prefix ( $ attr ) ; }
Answers the appropriate validator attribute name for the given mapping name and arguments.

@param string $name
@param array $args

@return string
Answers the appropriate validator attribute name for the given mapping name and arguments .