function(string $id) { if (empty($id)) { throw new \Exception(_('A wrong argument value is passed')); } if ($pref = $this->pref->get($id)) { return $pref['code'] ?? null; } return null; }