|
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
/**
* Create.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 Create
*
* @category Trait
* @package Xendit\ApiOperations
* @author Ellen <ellen@xendit.co>
* @license https://opensource.org/licenses/MIT MIT License
* @link https://api.xendit.co
*/
trait Create
{
/**
* Send a create request
*
* @param array $params user's params
*
* @return array
*/
public static function create($params = [])
{
self::validateParams($params, static::createReqParams());
$url = static::classUrl();
return static::_request('POST', $url, $params);
}
}