AnalystContract.php
11 months ago
CacheContract.php
11 months ago
HttpClientContract.php
11 months ago
RequestContract.php
11 months ago
RequestorContract.php
11 months ago
TrackerContract.php
11 months ago
RequestContract.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Analyst\Contracts; |
| 4 | |
| 5 | use Analyst\ApiResponse; |
| 6 | |
| 7 | interface RequestContract |
| 8 | { |
| 9 | /** |
| 10 | * Cast request data to array |
| 11 | * |
| 12 | * @return array |
| 13 | */ |
| 14 | public function toArray(); |
| 15 | |
| 16 | /** |
| 17 | * Execute the request |
| 18 | * @param RequestorContract $requestor |
| 19 | * @return ApiResponse |
| 20 | */ |
| 21 | public function execute(RequestorContract $requestor); |
| 22 | } |
| 23 |