1 | <?php |
||
9 | class Client |
||
10 | { |
||
11 | const VERSION = '0.0.1-alpha1'; |
||
12 | const USER_AGENT = 'wyrihaximus/travis-client/' . self::VERSION; |
||
13 | const API_VERSION = 'application/vnd.travis-ci.2+json'; |
||
14 | const API_HOST_OPEN_SOURCE = 'api.travis-ci.org'; |
||
15 | const API_HOST_PRO = 'api.travis-ci.com'; |
||
16 | const API_HOST = self::API_HOST_OPEN_SOURCE; |
||
17 | const API_SCHEMA = 'https'; |
||
18 | |||
19 | /** |
||
20 | * @var callable |
||
21 | */ |
||
22 | protected $handler; |
||
23 | |||
24 | public function __construct(callable $handler = null) |
||
32 | |||
33 | public function request(EndpointInterface $endpoint) |
||
38 | |||
39 | public function requestAsync(EndpointInterface $endpoint) |
||
50 | |||
51 | public function createRequest(string $method, string $path) |
||
59 | } |
||
60 |