Methods

Constructor

__construct(string $delimiter, int | null $explodeLimit) 

Parameters

$delimiter

string

String that the values will be split upon

$explodeLimit

intnull

Explode limit

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

extract(string[] $value) : string | null

Join array elements with delimiter

Parameters

$value

string[]

The original value.

Returns

stringnull

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

hydrate(string | null $value) : string[]

Split a string by delimiter

Parameters

$value

stringnull

Exceptions

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

Returns

string[]

Sets the delimiter string that the values will be split upon

setValueDelimiter(string $delimiter) : \Zend\Stdlib\Hydrator\Strategy\self

Parameters

$delimiter

string

Returns

\Zend\Stdlib\Hydrator\Strategy\self

 Properties

 

$explodeLimit

$explodeLimit : int | null

 

$valueDelimiter

$valueDelimiter : string