Pchp.Library.Variables.ExportFormatter.AcceptArrayItem C# (CSharp) Method

AcceptArrayItem() public method

public AcceptArrayItem ( PhpValue>.KeyValuePair entry ) : void
entry PhpValue>.KeyValuePair
return void
            public override void AcceptArrayItem(KeyValuePair<IntStringKey, PhpValue> entry)
            {
                // [key] => value
                OutputIndent();

                Accept(PhpValue.Create(entry.Key));
                _output.Append(" => ");
                if (entry.Value.IsArray || entry.Value.IsObject && !entry.Value.IsNull)
                {
                    _output.Append(_nl);
                    OutputIndent();
                }
                Accept(entry.Value);
                
                _output.Append(",");
                _output.Append(_nl);
            }