Created an implementation of a token repository that isn't restricted to users and can be re-used for other objects.
This commit is contained in:
25
src/Repository/Interfaces/TokenOwnerInterface.php
Normal file
25
src/Repository/Interfaces/TokenOwnerInterface.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* AVSDev UF Organisations (https://avsdev.uk)
|
||||
*
|
||||
* @link https://git.avsdev.uk/avsdev/sprinkle-organisations
|
||||
* @license https://git.avsdev.uk/avsdev/sprinkle-organisations/blob/master/LICENSE.md (LGPL-3.0 License)
|
||||
*/
|
||||
|
||||
namespace UserFrosting\Sprinkle\Organisations\Repository\Interfaces;
|
||||
|
||||
/**
|
||||
* Token Owner Interface.
|
||||
*
|
||||
* Represents a Token Owner object. The only requirement is that it must provide a unique id per object.
|
||||
*/
|
||||
interface TokenOwnerInterface
|
||||
{
|
||||
/**
|
||||
* Returns a unique ID for this Token Owner
|
||||
*
|
||||
* @return integer|string
|
||||
*/
|
||||
public function getId();
|
||||
}
|
||||
Reference in New Issue
Block a user