Skip to content

Commit 30e74ef

Browse files
committed
feat(pages): add a basic way to interact with pages
1 parent 45cee24 commit 30e74ef

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

src/Contracts/InteractsWithEndpoints.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,12 @@
66

77
use AdroSoftware\UnbounceSdk\Endpoint\{
88
Accounts\Accounts,
9+
Pages\Pages,
910
};
1011

1112
interface InteractsWithEndpoints
1213
{
1314
public function accounts(): Accounts;
15+
16+
public function pages(): Pages;
1417
}

src/Unbounce.php

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
use AdroSoftware\UnbounceSdk\Contracts\InteractsWithEndpoints;
88
use AdroSoftware\UnbounceSdk\Endpoint\{
99
Accounts\Accounts,
10+
Pages\Pages,
1011
};
1112

1213
final class Unbounce extends AbstractClient implements InteractsWithEndpoints
@@ -22,4 +23,9 @@ public function accounts(): Accounts
2223
{
2324
return new Accounts($this);
2425
}
26+
27+
public function pages(): Pages
28+
{
29+
return new Pages($this);
30+
}
2531
}

0 commit comments

Comments
 (0)