public function __construct($configuration, $value = NULL) { parent::__construct($configuration); $adjustedValue = is_array($value) ? ArrayElementTrimmer::trimList($value) : StringHelper::trim($value); if (is_array($adjustedValue) && count($adjustedValue) === 1) { $adjustedValue = $adjustedValue[0]; } $parameterName = $this->getParameterName(); $this->{$parameterName} = $adjustedValue; }
protected function adjustOrderBy($orderBy) { return ArrayElementTrimmer::trimList($orderBy); }