Skip to content

Commit 216a59b

Browse files
Create GetCatalogItems.php
1 parent 9152ed5 commit 216a59b

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
namespace StitchDigital\LaravelSimproApi\Requests\Catalogs;
6+
7+
use Saloon\Enums\Method;
8+
use Saloon\Http\Request;
9+
use Saloon\PaginationPlugin\Contracts\Paginatable;
10+
11+
class GetCatalogItems extends Request implements Paginatable
12+
{
13+
public function __construct(protected readonly int $companyId)
14+
{
15+
//
16+
}
17+
18+
/**
19+
* The HTTP method of the request
20+
*/
21+
protected Method $method = Method::GET;
22+
23+
/**
24+
* The endpoint for the request
25+
*/
26+
public function resolveEndpoint(): string
27+
{
28+
return '/companies/'.$this->companyId.'/catalogs/';
29+
}
30+
}

0 commit comments

Comments
 (0)