|
Server : Apache System : Linux server.mata-lashes.com 3.10.0-1160.90.1.el7.x86_64 #1 SMP Thu May 4 15:21:22 UTC 2023 x86_64 User : matalashes ( 1004) PHP Version : 8.1.29 Disable Function : NONE Directory : /home/matalashes/www/kite.mata-lashes.com/vendor/xendit/xendit-php/src/ApiOperations/ |
Upload File : |
<?php
/**
* Update.php
* php version 7.2.0
*
* @category Trait
* @package Xendit
* @author Ellen <ellen@xendit.co>
* @license https://opensource.org/licenses/MIT MIT License
* @link https://api.xendit.co
*/
namespace Xendit\ApiOperations;
/**
* Trait Update
*
* @category Trait
* @package Xendit\ApiOperations
* @author Ellen <ellen@xendit.co>
* @license https://opensource.org/licenses/MIT MIT License
* @link https://api.xendit.co
*/
trait Update
{
/**
* Send an update request
*
* @param string $id data ID
* @param array $params user's params
*
* @return array
*/
public static function update($id, $params = [])
{
self::validateParams($params, static::updateReqParams());
$url = static::classUrl() . '/' . $id;
return static::_request('PATCH', $url, $params);
}
}