Skip to content

Commit 51d6e9f

Browse files
committed
Add user and user provider contracts
1 parent fb05726 commit 51d6e9f

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

src/Contracts/User.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<?php
2+
3+
namespace Jaspaul\LaravelRollout\Contracts;
4+
5+
use Opensoft\Rollout\RolloutUserInterface;
6+
7+
interface User extends RolloutUserInterface
8+
{
9+
}

src/Contracts/UserProvider.php

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?php
2+
3+
namespace Jaspaul\LaravelRollout\Contracts;
4+
5+
interface UserProvider
6+
{
7+
/**
8+
* Finds and returns rollout users.
9+
*
10+
* @param mixed $id
11+
* A unique identifier for the rollout user in the system.
12+
*
13+
* @return \Jaspaul\LaravelRollout\Contracts\User
14+
* A rollout user.
15+
*/
16+
public function findByRolloutIdentifier($id);
17+
}

0 commit comments

Comments
 (0)