mirror of
https://github.com/FOSSBilling/FOSSBilling.git
synced 2026-11-09 13:36:07 +09:00
* Rename tests to tests-legacy * Groundwork for live tests * Somewhat working tests on a live instance * Hmmmmmm * Fix * Fixed the other bug * Added a handful of various tests * Typos, all these are admin endpoints * Bypass this check for testing envs * Disable it for now * Mini cleanup * Cleanup from debugging, ran PHP-CS-Fixer
58 lines
1.1 KiB
PHP
58 lines
1.1 KiB
PHP
<?php
|
|
|
|
class Example
|
|
{
|
|
public function __construct(private readonly ?array $config = null)
|
|
{
|
|
}
|
|
|
|
public function activate($service, $order, $params = [])
|
|
{
|
|
}
|
|
|
|
public function renew($service, $order, $params = [])
|
|
{
|
|
}
|
|
|
|
public function suspend($service, $order, $params = [])
|
|
{
|
|
}
|
|
|
|
public function unsuspend($service, $order, $params = [])
|
|
{
|
|
}
|
|
|
|
public function cancel($service, $order, $params = [])
|
|
{
|
|
return $this->suspend($service, $order, $params);
|
|
}
|
|
|
|
public function uncancel($service, $order, $params = [])
|
|
{
|
|
return $this->unsuspend($service, $order, $params);
|
|
}
|
|
|
|
public function delete($service, $order, $params = [])
|
|
{
|
|
}
|
|
|
|
public function get_config()
|
|
{
|
|
return $this->config;
|
|
}
|
|
|
|
/**
|
|
* Custom function to return passed params.
|
|
*
|
|
* @param type $service
|
|
* @param type $order
|
|
* @param type $params
|
|
*
|
|
* @return type
|
|
*/
|
|
public function return_params($service, $order, $params = [])
|
|
{
|
|
return $params;
|
|
}
|
|
}
|