update lock clucknut
All checks were successful
All checks were successful
This commit is contained in:
12
vendor/fedapay/fedapay-php/lib/Resource.php
vendored
12
vendor/fedapay/fedapay-php/lib/Resource.php
vendored
@@ -10,7 +10,7 @@
|
||||
*
|
||||
* @package FedaPay
|
||||
*/
|
||||
abstract class Resource extends FedaPayObject
|
||||
class Resource extends FedaPayObject
|
||||
{
|
||||
use ApiOperations\Request;
|
||||
|
||||
@@ -103,4 +103,14 @@ public function instanceUrl()
|
||||
{
|
||||
return static::resourcePath($this['id']);
|
||||
}
|
||||
|
||||
/**
|
||||
* Send any request
|
||||
* @return FedaPay\FedaPayObject
|
||||
*/
|
||||
public static function request($method, $url, $params = [], $headers = [])
|
||||
{
|
||||
list($response, $opts) = static::_staticRequest($method, $url, $params, $headers);
|
||||
return Util::arrayToFedaPayObject($response, $opts);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user