Copied!

A helper providing autocompletion for available CsvEncoder options.

Cloneable Final Instantiable
Methods
public toArray () : array
 
  • return array
public withAsCollection ( ? bool $asCollection ) : static
 

Configures whether the decoded result should be considered as a collection
or as a single element.

public withContext ( Symfony\Component\Serializer\Context\ContextBuilderInterface | array $context ) : static
 
  • param ContextBuilderInterface | array $context
public withDelimiter ( ? string $delimiter ) : static
 

Configures the column delimiter character.

Must be a single character.

  • param non-empty-string | null $delimiter
  • throws InvalidArgumentException
public withEnclosure ( ? string $enclosure ) : static
 

Configures the field enclosure character.

Must be a single character.

  • param non-empty-string | null $enclosure
  • throws InvalidArgumentException
public withEndOfLine ( ? string $endOfLine ) : static
 

Configures the end of line characters.

public withEscapeChar ( ? string $escapeChar ) : static
 

Configures the escape character.

Must be empty or a single character.

  • throws InvalidArgumentException
public withEscapedFormulas ( ? bool $escapedFormulas ) : static
 

Configures whether formulas should be escaped.

public withHeaders ( ? array $headers ) : static
 

Configures the headers.

  • param list | null $headers
public withKeySeparator ( ? string $keySeparator ) : static
 

Configures the key separator when (un)flattening arrays.

public withNoHeaders ( ? bool $noHeaders ) : static
 

Configures whether the input (or output) is containing (or will contain) headers.

public withOutputUtf8Bom ( ? bool $outputUtf8Bom ) : static
 

Configures whether to add the UTF-8 Byte Order Mark (BOM)
at the beginning of the encoded result or not.

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