A helper providing autocompletion for available XmlEncoder options.
- author Mathias Arlaud
CloneableFinalInstantiable
Methods |
public toArray() : array
|
public withAsCollection(?bool $asCollection) : static Configures whether the decoded result should be considered as a collection |
public withContext(Symfony
|
public withDecoderIgnoredNodeTypes(?array $decoderIgnoredNodeTypes) : static Configures node types to ignore while decoding.
|
public withEncoderIgnoredNodeTypes(?array $encoderIgnoredNodeTypes) : static Configures node types to ignore while encoding.
|
public withEncoding(?string $encoding) : static Configures the DOMDocument encoding.
|
public withFormatOutput(?bool $formatOutput) : static Configures whether to encode with indentation and extra space.
|
public withLoadOptions(?int $loadOptions) : static Configures the DOMDocument::loadXml options bitmask.
|
public withRemoveEmptyTags(?bool $removeEmptyTags) : static Configures whether to keep empty nodes. |
public withRootNodeName(?string $rootNodeName) : static Configures name of the root node. |
public withSaveOptions(?int $saveOptions) : static Configures the DOMDocument::saveXml options bitmask.
|
public withStandalone(?bool $standalone) : static Configures whether the document will be standalone.
|
public withTypeCastAttributes(?bool $typeCastAttributes) : static Configures whether casting numeric string attributes to integers or floats. |
public withVersion(?string $version) : static Configures the version number of the document.
|
Methods |
protected with(string $key, ?mixed $value) : static |
Properties |
private array $context = []
|