for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Cryptommer\Smsir\Classes;
use Cryptommer\Smsir\Exceptions\HttpException;
use Cryptommer\Smsir\Objects\CreditResponse;
use Cryptommer\Smsir\Objects\LineResponse;
use GuzzleHttp\Exception\GuzzleException;
use JsonException;
class Setting {
private $smsir;
/**
* @param Smsir $smsir
*/
public function __construct(Smsir $smsir) {
$this->smsir = $smsir;
}
* get account credit
*
* @return CreditResponse
* @throws GuzzleException
* @throws HttpException
* @throws JsonException
public function getCredit(): CreditResponse {
$response = $this->smsir->get('/v1/credit');
return new CreditResponse($response);
* get account line numbers
* @return LineResponse
public function getLines(): LineResponse {
$response = $this->smsir->get('/v1/line');
return new LineResponse($response);