Skip to content

Commit

Permalink
feat(pages): add a basic way to interact with pages
Browse files Browse the repository at this point in the history
  • Loading branch information
adrorocker committed Sep 18, 2024
1 parent 45cee24 commit 30e74ef
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Contracts/InteractsWithEndpoints.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@

use AdroSoftware\UnbounceSdk\Endpoint\{
Accounts\Accounts,
Pages\Pages,
};

interface InteractsWithEndpoints
{
public function accounts(): Accounts;

public function pages(): Pages;
}
6 changes: 6 additions & 0 deletions src/Unbounce.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use AdroSoftware\UnbounceSdk\Contracts\InteractsWithEndpoints;
use AdroSoftware\UnbounceSdk\Endpoint\{
Accounts\Accounts,
Pages\Pages,
};

final class Unbounce extends AbstractClient implements InteractsWithEndpoints
Expand All @@ -22,4 +23,9 @@ public function accounts(): Accounts
{
return new Accounts($this);
}

public function pages(): Pages
{
return new Pages($this);
}
}

0 comments on commit 30e74ef

Please sign in to comment.