Copied!

A helper providing autocompletion for available YamlEncoder options.

Cloneable Final Instantiable
Methods
public toArray () : array
 
  • return array
public withContext ( Symfony\Component\Serializer\Context\ContextBuilderInterface | array $context ) : static
 
  • param ContextBuilderInterface | array $context
public withFlags ( ? int $flags ) : static
 

Configures \Symfony\Component\Yaml\Dumper::dump flags bitmask.

  • see \Symfony\Component\Yaml\Yaml
public withIndentLevel ( ? int $indentLevel ) : static
 

Configures the indentation level.

Must be positive.

  • param int<0, max> | null $indentLevel
public withInlineThreshold ( ? int $inlineThreshold ) : static
 

Configures the threshold to switch to inline YAML.

public withPreservedEmptyObjects ( ? bool $preserveEmptyObjects ) : static
 

Configures whether to perserve empty objects "{}" or to convert them to null.

Methods
protected with ( string $key , ? mixed $value ) : static
Properties
private array $context
 
  • var array
© 2022 Bruce Wells
Search Namespaces \ Classes
Configuration