| 1 | <?php |
||
| 8 | abstract class ServiceCommand extends ApiCommand |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * Associated service. |
||
| 12 | * |
||
| 13 | * @var \Laravel\Forge\Contracts\ServiceContract |
||
| 14 | */ |
||
| 15 | protected $service; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * Create new command instance. |
||
| 19 | * |
||
| 20 | * @param \Laravel\Forge\Contracts\ServiceContract $service |
||
| 21 | */ |
||
| 22 | public function __construct(ServiceContract $service) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * Associated service. |
||
| 29 | * |
||
| 30 | * @return \Laravel\Forge\Contracts\ServiceContract |
||
| 31 | */ |
||
| 32 | public function getService(): ServiceContract |
||
| 36 | |||
| 37 | /** |
||
| 38 | * HTTP request URL. |
||
| 39 | * |
||
| 40 | * @param \Laravel\Forge\Contracts\ResourceContract $resource |
||
| 41 | * |
||
| 42 | * @return string |
||
| 43 | */ |
||
| 44 | public function requestUrl(ResourceContract $resource) |
||
| 48 | } |
||
| 49 |