for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace BrennerSousa\CafeApi;
/**
* Class Wallets
* @package BrennerSousa\CafeApi
*/
class Wallets extends CafeApi
{
* Wallets constructor.
* @param string $apiUrl
* @param string $email
* @param string $password
public function __construct(string $apiUrl, string $email, string $password)
parent::__construct($apiUrl, $email, $password);
}
* @param array|null $headers
* @return Wallets
public function index(?array $headers): Wallets
$this->request(
"GET",
"/wallets",
null,
$headers
);
return $this;
* @param array $fields
public function create(array $fields): Wallets
"POST",
$fields
* @param int $walletId
public function read(int $walletId): Wallets
"/wallets/{$walletId}"
public function update(int $walletId, array $fields): Wallets
"PUT",
"/wallets/{$walletId}",
public function delete(int $walletId): Wallets
"DELETE",