/** * @return null|Services_Widget_Transaction */ public static function instance() { if (is_null(self::$self)) { self::$self = new self(); } return self::$self; }
public function transaction($api) { switch ($api) { case Constants_WidgetConfigEnum::GET_CONFIG: $result = Services_Widget_Transaction::instance()->GetConfig(); break; } return $result; }