public function getPeriod($code) { $p = \Fuse_Period::getPredefined(); if (isset($p[$code])) { return $p[$code]; } $p = new \Fuse_Period($code); return $p->getTitle(); }
/** * Return list of available payment periods * * @return array */ public function periods() { return \Fuse_Period::getPredefined(); }