public function setProfil($options) { if ($options instanceof NumberFormat) { $this->other["profil"] = $options; } else { $profil = new NumberFormat(); if (is_array($options) && $options !== array()) { foreach ($options as $key => $value) { $f = 'set' . ucfirst($key); $profil->{$f}($value); } } else { $profil->setSymbol($this->code); } $this->other["profil"] = $profil; } return $this; }