protected function writeAttributesToValue()
    {
        $attributeStrings = [];

        foreach ($this->attributes as $attributes)
        {
            foreach ($attributes as $attrInfo)
            {
                $key = $attrInfo['name'];
                $value = $attrInfo['value'];

                if ($value === true)
                {
                    $string = $key;
                }
                elseif ($value === false)
                {
                    continue;
                }
                else
                {
                    $string = "$key=$value";
                }

                $attributeStrings[] = $string;
            }
        }

        $this->value = implode('; ', $attributeStrings);
    }
protected function writeAttributesToValue()
    {
        $attributeStrings = [];

        foreach ($this->attributes as $attributes)
        {
            foreach ($attributes as $attrInfo)
            {
                $key = $attrInfo['name'];
                $value = $attrInfo['value'];

                if ($value === true)
                {
                    $string = $key;
                }
                elseif ($value === false)
                {
                    continue;
                }
                else
                {
                    $string = "$key=$value";
                }

                $attributeStrings[] = $string;
            }
        }

        $this->value = implode('; ', $attributeStrings);
    }
protected function writeAttributesToValue ( ) { $ attributeStrings = [ ] ; foreach ( $ this -> attributes as $ attributes ) { foreach ( $ attributes as $ attrInfo ) { $ key = $ attrInfo [ 'name' ] ; $ value = $ attrInfo [ 'value' ] ; if ( $ value === true ) { $ string = $ key ; } elseif ( $ value === false ) { continue ; } else { $ string = "$key=$value" ; } $ attributeStrings [ ] = $ string ; } } $ this -> value = implode ( '; ' , $ attributeStrings ) ; }
Write internal attributes to the internal header value

@return void
Write internal attributes to the internal header value