public function __construct() { parent::__construct(function ($value) { if (is_object($value)) { return $value->__toString(); } elseif (is_string($value)) { return $value; } elseif (is_array($value)) { return implode(',', $value); } return "{$value}"; }); }
public function __construct() { parent::__construct(null); }