private function renderField(string $value): string
    {
        if (isset($this->field)) {
            $field = '';
            if (isset($this->namespace)) {
                $field = $this->namespace.'$';
            }
            $field .= $this->field;

            if (isset($this->matchType)) {
                $field .= '.'.$this->matchType;
            }
            $value .= $field.':';
        }

        return $value;
    }
private function renderField(string $value): string
    {
        if (isset($this->field)) {
            $field = '';
            if (isset($this->namespace)) {
                $field = $this->namespace.'$';
            }
            $field .= $this->field;

            if (isset($this->matchType)) {
                $field .= '.'.$this->matchType;
            }
            $value .= $field.':';
        }

        return $value;
    }
private function renderField ( string $ value ) : string { if ( isset ( $ this -> field ) ) { $ field = '' ; if ( isset ( $ this -> namespace ) ) { $ field = $ this -> namespace . '$' ; } $ field .= $ this -> field ; if ( isset ( $ this -> matchType ) ) { $ field .= '.' . $ this -> matchType ; } $ value .= $ field . ':' ; } return $ value ; }
Add the field specification to the term string.

@param string $value The current term value.

@return string The value with the attached field, if set.
Add the field specification to the term string .