for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Ijeffro\Laralocker\LearningLocker\StatementForwarding;
use Ijeffro\Laralocker\LearningLocker\API\APIHandler;
class StatementForwardingHandler extends APIHandler {
private $statement_forwarding = '/statementforwarding';
private $api = '/api';
private $v1 = '/v1';
$v1
private $v2 = '/v2';
protected $headers = [
'Content-Type' => 'application/json'
];
function __construct($id = null) {
parent::__construct();
$this->id = $id;
id
}
/**
* Learning Locker: Request Organisation Details
*
* @return $response
$response
0
*/
public function get() {
try {
$url = $this->url . $this->api . $this->v2 . $this->statement_forwarding . '/' . $this->id ?? $this->id;
$response = $this->request($url);
return $response;
} catch (Exception $e) {
Ijeffro\Laralocker\Learn...entForwarding\Exception
Exception
\
return $e;
public function update($data) {
$response = $this->save($url, $data);
public function create($data = null) {
$url = $this->url . $this->api . $this->v2 . $this->statement_forwarding;
$response = $this->make($url, $data);