/** * It creates a new ModelPayment object class ir if it has been created * before, it return the previous object * * @access public * @since 3.0 * @return ModelPayment */ public static function newInstance() { if (!self::$instance instanceof self) { self::$instance = new self(); } return self::$instance; }