|
1 | 1 | <?php declare(strict_types=1); |
2 | 2 |
|
3 | 3 | /** |
4 | | - * @package TK\SDK |
| 4 | + * @package TK\API |
5 | 5 | * @author Mehmet Korkmaz <mehmet@mkorkmaz.com> |
6 | 6 | * @license https://opensource.org/licenses/mit-license.php MIT |
7 | 7 | * |
8 | 8 | * Documentation can be found at https://developer.turkishairlines.com/documentation/ |
9 | 9 | */ |
10 | 10 |
|
11 | | -namespace TK\SDK; |
| 11 | +namespace TK\API; |
12 | 12 |
|
13 | 13 | use GuzzleHttp\Client as GuzzleClient; |
14 | 14 | use Psr\Http\Message\ResponseInterface; |
15 | 15 | use Psr\Log\LoggerInterface; |
16 | | -use TK\SDK\Endpoint\EndpointInterface; |
17 | | -use TK\SDK\Exception\InvalidArgumentException; |
18 | | -use TK\SDK\Exception\BadMethodCallException; |
19 | | -use TK\SDK\Exception\RequestException; |
| 16 | +use TK\API\Endpoint\EndpointInterface; |
| 17 | +use TK\API\Exception\InvalidArgumentException; |
| 18 | +use TK\API\Exception\BadMethodCallException; |
| 19 | +use TK\API\Exception\RequestException; |
20 | 20 | use TypeError; |
21 | 21 | use GuzzleHttp\Exception\RequestException as GuzzleRequestException; |
22 | 22 |
|
@@ -51,7 +51,7 @@ final class Client |
51 | 51 | private $logger; |
52 | 52 |
|
53 | 53 | private $headers = [ |
54 | | - 'User-Agent' => 'mkorkmaz/tk-api-php-sdk 1.0' |
| 54 | + 'User-Agent' => 'mkorkmaz/tk-api-php-client 1.0' |
55 | 55 | ]; |
56 | 56 |
|
57 | 57 | /** |
@@ -85,7 +85,7 @@ public function __call(string $name, array $arguments) |
85 | 85 |
|
86 | 86 | private function getEndpoint(string $name, array $arguments) : EndpointInterface |
87 | 87 | { |
88 | | - $namespace = '\\TK\\SDK\\Endpoint'; |
| 88 | + $namespace = '\\TK\\API\\Endpoint'; |
89 | 89 | $endpointClass = $namespace . '\\' . \ucfirst($name); |
90 | 90 | if (!\in_array($name, self::$validEndpoints, true) || !class_exists($endpointClass)) { |
91 | 91 | $message = sprintf('%s (%s) is not valid TK API endpoint.', $name, $endpointClass); |
|
0 commit comments