package Default

 Methods

Constructor

__construct(string $delimiter = ',', integer|null $explodeLimit = null

Parameters

$delimiter

string

String that the values will be split upon

$explodeLimit

integernull

Explode limit

Converts the given value so that it can be extracted by the hydrator.

extract(array<mixed,string> $value) : string | null

Join array elements with delimiter

inherited_from \Zend\Stdlib\Hydrator\Strategy\StrategyInterface::extract()

Parameters

$value

array<mixed,string>

The original value.

Returns

stringnull

Converts the given value so that it can be hydrated by the hydrator.

hydrate(string|null $value) : array<mixed,string>

Split a string by delimiter

inherited_from \Zend\Stdlib\Hydrator\Strategy\StrategyInterface::hydrate()

Parameters

$value

stringnull

Exceptions

\Zend\Stdlib\Hydrator\Strategy\Exception\InvalidArgumentException

Returns

array<mixed,string>

Sets the delimiter string that the values will be split upon

setValueDelimiter(string $delimiter) : \Zend\Stdlib\Hydrator\Strategy\ExplodeStrategy
fluent This method is part of a fluent interface and will return the same instance

Parameters

$delimiter

string

Returns

\Zend\Stdlib\Hydrator\Strategy\ExplodeStrategy

 Properties

 

$explodeLimit

$explodeLimit : integer | null

Default

 

$valueDelimiter

$valueDelimiter : string

Default