Skip to content

Commit

Permalink
Create GetActivities.php
Browse files Browse the repository at this point in the history
  • Loading branch information
johntrickett86 committed Feb 21, 2025
1 parent 2a79972 commit 43ef4ec
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions src/Requests/Setup/Activities/GetActivities.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?php

declare(strict_types=1);

namespace StitchDigital\LaravelSimproApi\Requests\Setup\Activities;

use Saloon\Enums\Method;
use Saloon\Http\Request;
use Saloon\PaginationPlugin\Contracts\Paginatable;

class GetActivities extends Request implements Paginatable
{
public function __construct(protected readonly int $companyId)
{
//
}

/**
* The HTTP method of the request
*/
protected Method $method = Method::GET;

/**
* The endpoint for the request
*/
public function resolveEndpoint(): string
{
return '/companies/'.$this->companyId.'/setup/activities/';
}
}

0 comments on commit 43ef4ec

Please sign in to comment.