public function all($trim = false) { if (!$trim) { return $this->values; } $values = []; foreach ($this->values as $key => $value) { $values[$key] = is_string($value) ? trim($value) : $value; } return $values; }
public function __construct(ValueBag $values, ValueBag $extra, \Exception $error = null) { $this->values = $values->all(); $this->valueBag = $values; $this->extra = $extra; $this->error = $error; }