Skip to content

Commit

Permalink
Docblock generateService function
Browse files Browse the repository at this point in the history
  • Loading branch information
r-kujawa committed Jan 18, 2024
1 parent 00de2db commit caaf98a
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Drivers/ConfigDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,13 @@ public function resolveGateway($provider, $merchant)
return new $gateway($provider, $merchant);
}

/**
* Generate the service skeleton based on the current driver.
*
* @param \Payavel\Orchestration\Contracts\Serviceable $service
* @param array $config
* @return void
*/
public static function generateService(Serviceable $service, array $config)
{
static::putFile(
Expand Down
7 changes: 7 additions & 0 deletions src/Drivers/DatabaseDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,13 @@ public function resolveGateway($provider, $merchant)
return new $gateway($provider, $merchant);
}

/**
* Generate the service skeleton based on the current driver.
*
* @param \Payavel\Orchestration\Contracts\Serviceable $service
* @param array $config
* @return void
*/
public static function generateService(Serviceable $service, array $config)
{
static::putFile(
Expand Down
7 changes: 7 additions & 0 deletions src/ServiceDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ abstract public function getDefaultMerchant(Providable $provider = null);
*/
abstract public function resolveGateway($provider, $merchant);

/**
* Generate the service skeleton based on the current driver.
*
* @param \Payavel\Orchestration\Contracts\Serviceable $service
* @param array $config
* @return void
*/
public static function generateService(Serviceable $service, array $config)
{
//
Expand Down

0 comments on commit caaf98a

Please sign in to comment.