You are here

public function ExplodeStrategy::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-hydrator/src/Strategy/ExplodeStrategy.php \Zend\Hydrator\Strategy\ExplodeStrategy::__construct()

Constructor

Parameters

string $delimiter String that the values will be split upon:

int|null $explodeLimit Explode limit:

File

vendor/zendframework/zend-hydrator/src/Strategy/ExplodeStrategy.php, line 30

Class

ExplodeStrategy

Namespace

Zend\Hydrator\Strategy

Code

public function __construct($delimiter = ',', $explodeLimit = null) {
  $this
    ->setValueDelimiter($delimiter);
  $this->explodeLimit = $explodeLimit === null ? null : (int) $explodeLimit;
}