for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Created by PhpStorm.
* User: dp
* Date: 16.08.17
* Time: 13:09
*/
namespace Lan\Ebs\Sdk;
use Exception;
final class ReportForm implements Common
{
private $client;
* Security constructor.
*
* @param Client $client
* @throws Exception
public function __construct(Client $client)
if (!$client) {
throw new Exception('Client not defined');
}
$this->client = $client;
public function getUrl($method, array $params = [])
switch ($method) {
case 'getBibFond':
return [
'url' => '/1.0/report/form/bibFond',
'method' => 'GET',
'code' => 200
];
case 'getEBooks':
'url' => '/1.0/report/form/eBooks',
case 'getSpecPo':
'url' => '/1.0/report/form/specPo',
default:
throw new Exception('Route for ' . $method . ' not found');
public function getBibFond()
return $this->client->getResponse($this->getUrl(__FUNCTION__))['data'];
public function getEBooks()
public function getSpecPo()